/* qrCatch v2 — sign in, create account, forgot / reset / set password, claim QR (includes/auth_layout.php).
   Scope: body.qa-auth (with qc-app2.css + qrcatch-ui.css .qc-auth). Same card as the live login, now in the
   studio's tokens: Google Sans, royal focus, signal button, readable greys, every notice in one language. */

body.qa-auth .auth-page { min-height: 100vh; min-height: 100dvh; display: flex !important; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; }
body.qa-auth .auth-card { width: 100%; max-width: 440px !important; border-radius: 24px !important; border: 1px solid var(--line) !important; box-shadow: 0 1px 2px rgba(23, 27, 61, .05), 0 24px 48px -28px rgba(23, 27, 61, .35) !important; padding: 34px 30px 26px !important; }
@media (max-width: 480px) { body.qa-auth .auth-card { padding: 26px 18px 20px !important; border-radius: 22px !important; } }
body.qa-auth .auth-card > .qc-lang-mount { position: absolute; top: 14px; inset-inline-end: 14px; inset-inline-start: auto; z-index: 2; }
body.qa-auth .auth-card > .qc-lang-mount .qc-lang { position: static !important; }
body.qa-auth .auth-logo-qc { margin: 18px auto 16px !important; }
body.qa-auth .auth-header { margin-bottom: 22px !important; }
body.qa-auth .auth-header::after, body.qa-auth .auth-header::before { content: none !important; display: none !important; }
body.qa-auth .auth-title { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.01em; color: var(--ink) !important; }
body.qa-auth .auth-subtitle { color: var(--ink-2) !important; font-size: 15px !important; }

/* steps (create account: details → code) */
body.qa-auth .auth-steps { display: flex; gap: 6px; justify-content: center; margin: 0 0 18px !important; }
body.qa-auth .auth-step { width: 28px !important; height: 5px !important; border-radius: 999px !important; background: var(--line-2) !important; box-shadow: none !important; }
body.qa-auth .auth-step.active { background: var(--royal) !important; width: 44px !important; }
body.qa-auth .auth-step.completed { background: var(--ok) !important; }
body.qa-auth .step-indicators { display: flex !important; gap: 6px !important; justify-content: center; margin: 0 0 18px !important; }
body.qa-auth .step-dot { width: 28px !important; height: 5px !important; border-radius: 999px !important; background: var(--line-2) !important; box-shadow: none !important; transform: none !important; }
body.qa-auth .step-dot.active { background: var(--royal) !important; width: 44px !important; }
body.qa-auth .step-dot.completed { background: var(--ok) !important; }

/* fields: icon at the start, eye at the end — the global input rules must not eat their room */
body.qa-auth .tb-input-group { margin-bottom: 16px !important; }
body.qa-auth .auth-label { display: block !important; color: var(--ink) !important; font-size: 13.5px !important; font-weight: 500 !important; margin: 0 0 7px !important; }
body.qa-auth .auth-input { height: 50px !important; min-height: 50px; border-radius: 12px !important; border-color: var(--line-2) !important; }
body.qa-auth .auth-input:focus { border-color: var(--royal) !important; box-shadow: 0 0 0 3px rgba(35, 70, 216, .14) !important; }
body.qa-auth .auth-input-wrapper { position: relative; }
body.qa-auth .auth-input-wrapper .auth-input { padding-left: 46px !important; padding-right: 14px !important; }
body.qa-auth .auth-input-wrapper:has(.auth-password-toggle) .auth-input { padding-right: 52px !important; }
html[data-qc-lang="ar"] body.qa-auth .auth-input-wrapper .auth-input { padding-right: 46px !important; padding-left: 14px !important; }
html[data-qc-lang="ar"] body.qa-auth .auth-input-wrapper:has(.auth-password-toggle) .auth-input { padding-left: 52px !important; }
body.qa-auth .auth-input-icon { color: var(--ink-3) !important; pointer-events: none; display: grid; place-items: center; }
body.qa-auth .auth-password-toggle { color: var(--ink-2) !important; width: 44px; height: 44px; display: grid !important; place-items: center; border-radius: 10px; background: none; border: 0; right: 3px !important; cursor: pointer; }
html[data-qc-lang="ar"] body.qa-auth .auth-password-toggle { right: auto !important; left: 3px !important; }
body.qa-auth .auth-password-toggle:hover { background: var(--paper); color: var(--ink); }
body.qa-auth .auth-code-input { text-align: center; letter-spacing: .4em; font-size: 22px !important; font-weight: 600; padding: 0 14px !important; direction: ltr; }
html[data-qc-lang="ar"] body.qa-auth .auth-code-input { letter-spacing: .4em !important; text-align: center; }
body.qa-auth .qc-hint, body.qa-auth .tb-input-group small, body.qa-auth .tb-input-group .bilingual small { display: block; margin-top: 6px; color: var(--ink-2) !important; font-size: 13px !important; line-height: 1.5; opacity: 1 !important; }
body.qa-auth .tb-input-group small[style] { color: var(--ink-2) !important; font-size: 13px !important; }

/* buttons + links */
body.qa-auth .auth-submit { width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 54px !important; border-radius: 16px !important; background: var(--signal) !important; font-size: 16px !important; font-weight: 600 !important; box-shadow: 0 14px 30px -14px rgba(230, 0, 126, .55) !important; }
body.qa-auth .auth-submit:hover { filter: saturate(1.1); transform: translateY(-1px); }
body.qa-auth .auth-submit .ar, body.qa-auth .auth-btn-secondary .ar { font-size: inherit !important; opacity: 1 !important; }
body.qa-auth .auth-btn-secondary { width: 100%; min-height: 48px; margin-top: 10px; border-radius: 14px !important; border: 1px solid var(--line-2) !important; background: #fff !important; color: var(--ink) !important; font-size: 15px !important; font-weight: 500 !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body.qa-auth .auth-btn-secondary:hover { border-color: var(--royal) !important; }
body.qa-auth .auth-links { flex-wrap: wrap !important; }
body.qa-auth .auth-link { color: var(--ink-2) !important; font-weight: 500 !important; font-size: 14px !important; text-decoration: none; }
body.qa-auth a.auth-link:hover { color: var(--ink) !important; }
body.qa-auth .auth-link-primary { color: var(--royal) !important; font-weight: 600 !important; }
body.qa-auth .auth-link .ar, body.qa-auth .auth-link-primary .ar { font-size: inherit !important; opacity: 1 !important; }

/* notices (incl. the ones written with inline dark styles) */
body.qa-auth .auth-message { border-radius: 16px !important; padding: 14px 16px !important; font-size: 14.5px !important; line-height: 1.55; }
body.qa-auth .auth-message-error { background: var(--bad-soft) !important; border: 1px solid #F5C2BD !important; color: #8F1D14 !important; }
body.qa-auth .auth-message-success { background: var(--ok-soft) !important; border: 1px solid #B7E7D2 !important; color: #08603D !important; }
body.qa-auth .auth-message-info { background: var(--royal-soft) !important; border: 1px solid #D3DBFB !important; color: #1B2C80 !important; }
body.qa-auth .auth-message [style*="opacity"], body.qa-auth .auth-message .ar[style] { opacity: 1 !important; font-size: 14px !important; }
body.qa-auth .auth-info { background: var(--paper) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; color: var(--ink) !important; padding: 12px 14px !important; }
body.qa-auth .auth-info p, body.qa-auth .auth-info strong { color: var(--ink) !important; }
body.qa-auth .auth-card div[style*="rgba(37,211,102"] { background: var(--ok-soft) !important; border: 1px solid #B7E7D2 !important; color: #08603D !important; }
body.qa-auth .auth-card div[style*="rgba(37,211,102"] p { color: #08603D !important; opacity: 1 !important; }
body.qa-auth .auth-card [style*="color:rgba(255,255,255"], body.qa-auth .auth-card [style*="color: rgba(255,255,255"] { color: var(--ink-2) !important; }
body.qa-auth .auth-card [style*="color:#fff"]:not(a), body.qa-auth .auth-card [style*="color: #fff"]:not(a), body.qa-auth .auth-card [style*="color:white"]:not(a) { color: var(--ink) !important; }
body.qa-auth .auth-card a[style*="#25D366"] { background: var(--wa) !important; color: #fff !important; border-radius: 14px !important; font-weight: 600 !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
body.qa-auth .auth-card a[style*="#e5007e"] { background: var(--ink) !important; color: #fff !important; border-radius: 14px !important; font-weight: 600 !important; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
body.qa-auth .auth-card a[style*="font-size:0.82em"] { color: var(--ink-2) !important; font-size: 13.5px !important; }
body.qa-auth .auth-card [style*="font-family:'Noto Sans Arabic'"], body.qa-auth .auth-card [style*="font-family: 'Noto Sans Arabic'"] { font-family: var(--qc2-font) !important; }

/* the "back" arrow points the reading way */
body.qa-auth .auth-link svg { flex: none; }
html[data-qc-lang="ar"] body.qa-auth .auth-link svg { transform: scaleX(-1); margin-right: 0 !important; margin-left: 6px; }
body.qa-auth .claim-intro { background: var(--royal-soft) !important; border: 1px solid #D3DBFB !important; color: #1B2C80 !important; border-radius: 16px !important; font-size: 14.5px !important; }
body.qa-auth .claim-intro strong { color: #1B2C80; }
body.qa-auth .claim-intro .ar { opacity: 1 !important; margin-top: 0 !important; }
body.qa-auth .otp-info { color: var(--ink-2) !important; font-size: 13.5px !important; }
body.qa-auth .start-over a { color: var(--ink-2) !important; font-size: 14px !important; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 480px) { body.qa-auth .auth-logo-qc { margin-top: 34px !important; } }
