/**
 * Authentication – Modern Design (Theme 3)
 * Popl-inspired: professional, clean split layout
 */
.auth-modern-wrap { min-height: 100vh; background: #0a0a0f; font-family: 'Inter', 'Poppins', sans-serif; }
.auth-modern-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
@media (max-width: 991px) { .auth-modern-grid { grid-template-columns: 1fr; } }
.auth-modern-visual { position: relative; background: linear-gradient(160deg, #0a0a0f 0%, #13131a 40%, #1a1a24 100%); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.auth-modern-visual-inner { position: relative; width: 100%; height: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-modern-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.auth-modern-visual-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,15,0.75) 0%, rgba(10,10,15,0.92) 100%); }
.auth-modern-visual-content { position: relative; z-index: 2; padding: 3rem 3.5rem; max-width: 420px; }
.auth-modern-visual-logo { display: inline-block; margin-bottom: 2.5rem; }
/* Looping gentle pulse animation (slow) */
@keyframes auth-modern-logo-enter { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.92; transform: scale(1.04); } }
.auth-modern-visual-logo .auth-modern-logo-img { animation: auth-modern-logo-enter 3.5s ease-in-out infinite; }
.auth-modern-logo-img { max-height: 187px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.auth-modern-logo-mobile { max-height: 60px; filter: none; }
.auth-modern-visual-title { font-size: 2.25rem; font-weight: 700; color: #fff; margin: 0 0 0.75rem 0; letter-spacing: -0.03em; line-height: 1.2; }
.auth-modern-visual-tagline { font-size: 1.0625rem; color: rgba(255,255,255,0.7); margin: 0; font-weight: 400; line-height: 1.55; }
.auth-modern-form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2.5rem 1.5rem; background: #fff; overflow-y: auto; }
.auth-modern-form-inner { width: 100%; max-width: 400px; }
.auth-modern-mobile-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.auth-modern-app-name { font-size: 1.25rem; font-weight: 700; color: #0a0a0f; margin-left: 0.5rem; }
.auth-modern-heading { font-size: 1.75rem; font-weight: 700; color: #0a0a0f; margin: 0 0 0.35rem 0; letter-spacing: -0.02em; }
.auth-modern-subheading { font-size: 0.9375rem; color: #64748b; margin: 0 0 1.75rem 0; }
.auth-modern-form .auth-form-group { margin-bottom: 1.25rem; }
.auth-modern-form .auth-form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 400px) { .auth-modern-form .auth-form-row-half { grid-template-columns: 1fr; } }
.auth-modern-form .auth-form-terms { font-size: 0.8125rem; color: #475569; line-height: 1.5; }
.auth-modern-form .auth-form-terms a { color: #0a0a0f; font-weight: 600; }
.auth-modern-form .auth-form-label { display: block; font-size: 0.875rem; font-weight: 600; color: #334155; margin-bottom: 0.4rem; }
.auth-modern-form .auth-form-input { width: 100%; padding: 0.8rem 1rem; font-size: 0.9375rem; color: #0a0a0f; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.auth-modern-form .auth-form-input:focus { outline: none; border-color: #0a0a0f; box-shadow: 0 0 0 3px rgba(10,10,15,0.08); }
.auth-modern-form .auth-form-password-wrap { position: relative; }
.auth-modern-form .auth-form-password-wrap .auth-form-input { padding-right: 2.75rem; }
.auth-modern-form .auth-form-password-toggle { right: 1rem; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 1.1rem; cursor: pointer; }
.auth-modern-form .auth-form-link { font-size: 0.875rem; color: #0a0a0f; text-decoration: none; font-weight: 600; }
.auth-modern-form .auth-form-link:hover { text-decoration: underline; }
.auth-modern-form .auth-form-checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: #475569; }
.auth-modern-form .auth-form-submit-wrap { display: flex; justify-content: flex-end; }
.auth-modern-form .auth-form-submit { width: auto !important; min-width: 12rem; padding: 0.9rem 1.75rem; font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #FF9F33 0%, #FF8C00 50%, #E67E00 100%); border: none; border-radius: 50px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; font-family: inherit; box-shadow: 0 4px 14px rgba(255,140,0,0.4); display: block !important; margin-inline-start: auto; margin-inline-end: 0; text-shadow: 0 1px 1px rgba(0,0,0,0.1); }
.auth-modern-form .auth-form-submit:hover { background: linear-gradient(180deg, #FFA94D 0%, #FF9933 50%, #F08000 100%); box-shadow: 0 6px 20px rgba(255,140,0,0.5); transform: translateY(-1px); }
.auth-modern-form .auth-form-submit:active { transform: scale(0.98); }
/* Arabic/RTL: button on the left (flex-start = left) */
.auth-modern-wrap-rtl .auth-modern-form .auth-form-submit-wrap { justify-content: flex-start !important; }
.auth-modern-wrap-rtl .auth-modern-form .auth-form-submit { margin-inline-start: 0 !important; margin-inline-end: auto !important; }
.auth-modern-wrap[dir="rtl"] .auth-modern-form .auth-form-submit-wrap { justify-content: flex-start !important; }
.auth-modern-wrap[dir="rtl"] .auth-modern-form .auth-form-submit { margin-inline-start: 0 !important; margin-inline-end: auto !important; }
.auth-modern-divider { margin: 1.5rem 0 1rem; text-align: center; position: relative; }
.auth-modern-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e2e8f0; }
.auth-modern-divider span { position: relative; background: #fff; padding: 0 0.75rem; font-size: 0.8125rem; color: #94a3b8; font-weight: 500; }
.auth-modern-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.auth-modern-social-btn { flex: 1; min-width: 140px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600; color: #334155; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.auth-modern-social-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0a0a0f; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.auth-modern-social-btn.auth-modern-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.auth-modern-social-btn.auth-modern-facebook:hover { background: #166fe5; border-color: #166fe5; color: #fff; }
.auth-modern-footer { margin-top: 2rem; font-size: 0.8125rem; color: #94a3b8; text-align: center; }
.auth-modern-footer a { color: #0a0a0f; font-weight: 600; text-decoration: none; }
.auth-modern-footer a:hover { text-decoration: underline; }
.auth-modern-card-wrap { min-height: 100vh; background: linear-gradient(160deg, #0a0a0f 0%, #13131a 50%, #1a1a24 100%); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-modern-card { width: 100%; max-width: 480px; background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,0.2); padding: 2.5rem 2rem; }

/* Language selector – Popl-style (theme 3 only) – always on right (LTR and RTL) */
.auth-modern-lang-dropdown { position: fixed !important; top: 1.25rem; right: 1.25rem !important; left: auto !important; z-index: 10; }
/* Override .authImage.rtl .dropdown width so button stays right (not center) when Arabic selected */
.authImage.rtl .auth-modern-lang-dropdown { width: auto !important; right: 1.25rem !important; left: auto !important; }
.auth-modern-lang-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #FF9F33 0%, #FF8C00 50%, #E67E00 100%); border: none; border-radius: 50px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; font-family: inherit; box-shadow: 0 2px 8px rgba(255,140,0,0.4); text-shadow: 0 1px 1px rgba(0,0,0,0.1); }
.auth-modern-lang-btn:hover { background: linear-gradient(180deg, #FFA94D 0%, #FF9933 50%, #F08000 100%); box-shadow: 0 4px 14px rgba(255,140,0,0.5); transform: translateY(-1px); color: #fff; }
.auth-modern-lang-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,140,0,0.4); }
.auth-modern-lang-text { line-height: 1.3; }
.auth-modern-lang-icon { font-size: 1.1rem; color: rgba(255,255,255,0.95); }
.auth-modern-lang-menu.dropdown-menu { border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); padding: 0.5rem; margin-top: 0.5rem; }
.auth-modern-lang-menu .dropdown-item { border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #334155; }
.auth-modern-lang-menu .dropdown-item:hover { background: #f8fafc; color: #0a0a0f; }
.auth-modern-lang-menu .dropdown-item.active { background: rgba(10,10,15,0.08); color: #0a0a0f; font-weight: 600; }
