/* === Login Page Styles === */
.login-container {
    min-height: 100vh;
    display: flex;
}

.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #3B82F6 0%, #6366f1 50%, #8b5cf6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

.login-brand-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-brand-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.login-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-brand p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 320px;
}

.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.login-form-wrapper .subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 28px;
}

.login-lockout {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #991b1b;
    font-size: 0.85rem;
}

.login-lockout .timer {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-top: 8px;
}

/* === Reset Password === */
.reset-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.reset-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.reset-header {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #854d0e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.reset-header i {
    font-size: 1.1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.reset-header code {
    background: rgba(133, 77, 14, 0.1);
    color: #854d0e;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* === Tablet (< 992px) === */
@media (max-width: 991.98px) {
    .login-container {
        flex-direction: column;
    }

    .login-brand {
        padding: 32px;
        min-height: auto;
    }

    .login-brand h1 {
        font-size: 1.75rem;
    }

    .login-brand-icon {
        font-size: 2.5rem;
    }

    .login-form-section {
        padding: 32px 24px;
        flex: none;
    }
}

/* === Phone (< 576px) === */
@media (max-width: 575.98px) {
    .login-brand {
        padding: 24px 16px;
    }

    .login-brand h1 {
        font-size: 1.5rem;
    }

    .login-brand-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .login-brand p {
        font-size: 0.85rem;
        max-width: 280px;
    }

    .login-brand::before {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -60px;
    }

    .login-brand::after {
        width: 150px;
        height: 150px;
        bottom: -50px;
        left: -50px;
    }

    .login-form-section {
        padding: 24px 16px;
    }

    .login-form-wrapper h2 {
        font-size: 1.25rem;
    }

    .login-form-wrapper .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Ensure buttons meet 44px touch target */
    .login-form-wrapper .btn {
        min-height: 48px;
        font-size: 1rem;
    }

    .login-form-wrapper .input-group .btn {
        min-height: auto;
        min-width: 44px;
    }
}

/* === Extra small (< 375px) === */
@media (max-width: 374.98px) {
    .login-brand {
        padding: 20px 12px;
    }

    .login-form-section {
        padding: 20px 12px;
    }

    .login-brand h1 {
        font-size: 1.3rem;
    }
}
