:root {
    --primary: #000080;
    --secondary: #e0a800;
    --accent: #1a73e8;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #0d2a4a 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-section::before,
.brand-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.brand-section::before {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

.brand-section::after {
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
}

.brand-logo {
    width: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--secondary), #f8d053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 400px;
}

.login-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.input-field {
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input-field input:focus {
    border-color: var(--accent);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(19, 58, 113, 0.2);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 58, 113, 0.3);
}

.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    width: max-content;
}

.alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.alert.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px);
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--success), #218838);
    border-left: 5px solid #1e7e34;
}

.alert-error {
    background: linear-gradient(135deg, var(--danger), #c82333);
    border-left: 5px solid #bd2130;
}

.alert-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 5px;
}

.alert-close:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .brand-section {
        padding: 40px 20px;
        border-radius: 20px 20px 0 0;
    }

    .login-section {
        padding: 40px 20px;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 2rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    body {
        padding: 10px;
    }
}

