/**
 * تسجيل الدخول والاستعادة — بدون form-floating (أفضل مع RTL والخطوط)
 */
html.auth-page {
    scroll-behavior: smooth;
}

body.lux-auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.lux-auth-body::before {
    animation-duration: 24s;
    opacity: 0.85;
}

.lux-auth-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    animation: authCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.lux-auth-ornament {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    font-size: 1.85rem;
    animation: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* شعار العيادة — صور أفقية أو كبيرة تُقيَّد داخل البطاقة */
.lux-auth-logo-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.lux-auth-logo {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 5.5rem;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.4rem 0.65rem;
    background: #fff;
    box-sizing: border-box;
}

@media (max-width: 400px) {
    .lux-auth-logo {
        max-height: 4.75rem;
        padding: 0.35rem 0.5rem;
    }
}

.auth-field-group {
    margin-bottom: 1.1rem;
}

.auth-field-group .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.auth-field-group .form-control {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #0f172a !important;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field-group .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.auth-field-group .form-control:focus {
    border-color: var(--primary, #0d9488);
    box-shadow: 0 0 0 3px var(--primary-lighter, rgba(13, 148, 136, 0.25));
    outline: none;
    color: #0f172a !important;
}

.lux-auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.lux-auth-card .auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.35rem;
    line-height: 1.55;
}

.btn-login {
    min-height: 3rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.login-error {
    margin-bottom: 1rem;
}

@media (max-width: 400px) {
    .lux-auth-card {
        padding: 1.5rem 1.25rem;
    }
}
