/* ── LIGHT & CLEAN LOGIN PAGE ─────────────────────────────── */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 50%, #eff2f5 100%);
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 48px rgba(59, 130, 246, 0.14), 0 0 60px rgba(59, 130, 246, 0.08);
    overflow: hidden;
}

/* ── HEADER: LOGO + TITLE + CONTROLS ─────────────────────── */
.login-header {
    background: white;
    padding: 4rem 2.5rem 3rem;
    text-align: center;
    color: var(--bs-primary);
}

.logo-wrapper {
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease;
    display: flex;
    justify-content: center;
}

.clinic-logo-large {
    height: 200px;
    width: auto;
    aspect-ratio: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.15));
    transition: transform 0.3s ease;
}

.clinic-logo-large:hover {
    transform: scale(1.02);
}

.clinic-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
    color: var(--bs-primary);
}

.clinic-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 1.75rem 0;
    color: #5a6578;
    letter-spacing: 0.02em;
}

/* ── INLINE LANGUAGE + RESOURCES CONTROLS ────────────────── */
.login-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.login-control-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.login-control-link:hover {
    background: #e5e7eb;
    color: #2563EB;
    transform: translateY(-1px);
}

.control-divider {
    color: #d1d5db;
    font-weight: 300;
}

.login-control-link i {
    font-size: 1.05rem;
}

/* ── FORM SECTION ─────────────────────────────────────────── */
.login-form-wrapper {
    padding: 3rem 2.5rem 2.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--bs-primary);
    font-size: 1rem;
    margin-inline-end: 0.5rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: var(--bs-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-control-lg {
    height: 3rem;
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
}

.authenticator-input {
    font-size: 1.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.form-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ── SECURITY ALERT ──────────────────────────────────────── */
.security-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.security-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: white;
}

.security-text {
    flex: 1;
}

.security-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #047857;
    margin: 0;
}

.security-subtitle {
    font-size: 0.9rem;
    color: #059669;
    margin: 0.25rem 0 0;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #2563EB 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.btn-link {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
}

.btn-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.login-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0 0 0.75rem 0;
}

.footer-link {
    color: var(--bs-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

.security-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .login-card {
        border-radius: 20px;
    }
    
    .login-header {
        padding: 3rem 1.5rem 2rem;
    }
    
    .clinic-logo-large {
        height: 160px;
    }
    
    .clinic-name {
        font-size: 1.8rem;
    }
    
    .login-form-wrapper {
        padding: 2rem 1.5rem;
    }
}