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

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

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.left-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.illustration {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.right-section {
    flex: 1;
    background: #000080;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    color: white;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 13px;
    animation: slideDown 0.3s ease;
    position: relative;
}

.alert-success {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-danger {
    background: rgba(139, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(139, 0, 0, 0.5);
}

.alert-dismissible {
    padding-right: 35px;
}

.alert .close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 48px;
    background: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    color: white;
    font-size: 16px;
    z-index: 1;
    transition: background 0.3s ease;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.form-control {
    width: 100%;
    padding: 14px 45px 14px 55px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-control:focus ~ .input-icon {
    background: #808080;
}

.form-control::placeholder {
    color: #999;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 3;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #666;
    stroke-width: 2;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: white;
    color: #000080;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.forgot-password {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    text-align: center;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #ffdddd;
    text-decoration: underline;
}

.forgot-password-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.forgot-password-links {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 450px;
    }

    .left-section {
        padding: 30px 25px;
    }

    .right-section {
        padding: 30px 25px;
    }

    .login-title {
        font-size: 22px;
    }

    .illustration {
        max-width: 240px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .login-container {
        border-radius: 20px;
        max-width: 100%;
    }

    .left-section {
        padding: 25px 20px;
    }

    .right-section {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .illustration {
        max-width: 200px;
    }

    .form-control {
        font-size: 14px;
        padding: 13px 40px 13px 50px;
    }

    .input-icon {
        width: 40px;
        height: 45px;
        font-size: 14px;
    }

    .btn-login {
        font-size: 15px;
        padding: 13px;
    }

    .password-toggle {
        font-size: 16px;
    }
}