/* Additional login-specific styles to complement the main styles.css */

.login-section {
    max-width: 450px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.login-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    animation: titleSlide 0.6s ease-out;
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.login-form {
    animation: fadeInGroup 0.6s ease-out 0.4s both;
}

/* Password Wrapper with Toggle Button */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-wrapper .form-input {
        width: 100%;
        padding-right: 2.75rem;
    }

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 0.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

    .password-toggle:hover {
        color: var(--primary-blue);
        transform: scale(1.15) rotate(10deg);
    }

    .password-toggle:active {
        transform: scale(0.95);
    }

/* Login Options (Remember Me & Forgot Password) */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    animation: fadeInGroup 0.6s ease-out 0.6s both;
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-password::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #145da0, #498fcd);
        transition: width 0.3s ease;
    }

    .forgot-password:hover {
        color: #498fcd;
    }

        .forgot-password:hover::after {
            width: 100%;
        }

/* Enhanced Sign In button with modern design and animations */
.btn-login {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    animation: fadeInGroup 0.6s ease-out 0.8s both;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #145da0 0%, #498fcd 100%);
    border: none;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(20, 93, 160, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-text {
    position: relative;
    z-index: 2;
    display: block;
    transition: all 0.3s ease;
}

/* Ripple effect animation for button click feedback */
.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(20, 93, 160, 0.4);
    background: linear-gradient(135deg, #022c4c 0%, #145da0 100%);
}

    .btn-login:hover .btn-text {
        letter-spacing: 1px;
    }

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(20, 93, 160, 0.2);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Smooth loading animation when signing in */
.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sign Up Section */
.signup-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-gray);
    animation: fadeInGroup 0.6s ease-out 1s both;
}

    .signup-section p {
        color: var(--text-light);
        font-size: 0.95rem;
    }

.signup-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

    .signup-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #145da0, #498fcd);
        transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .signup-link:hover {
        color: #498fcd;
    }

        .signup-link:hover::before {
            width: 100%;
        }

/* Checkbox Label Styling */
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

    .checkbox-label input[type="checkbox"]:hover {
        transform: scale(1.15);
    }

    .checkbox-label input[type="checkbox"]:checked {
        animation: checkBounce 0.4s ease-out;
    }

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    padding: 0;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

    .checkbox-label span {
        font-weight: 500;
        color: var(--text-dark);
        user-select: none;
        transition: color 0.3s ease;
    }

    .checkbox-label:hover span {
        color: var(--primary-blue);
    }

@keyframes checkBounce {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-title {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 0.95rem;
    }

    .login-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .forgot-password {
        align-self: flex-end;
    }

    .btn-login {
        padding: 0.9rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        margin: 0;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .login-options {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-login {
        padding: 0.85rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }
}
