/* =========================================================
   صفحات ورود / ثبت‌نام
   ========================================================= */

.auth-section { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: center; overflow: hidden; padding: 50px 0; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .34; z-index: 0; animation: floaty 8s ease-in-out infinite; }
.auth-blob.blob-1 { width: 340px; height: 340px; background: #8fdfe3; top: -60px; inset-inline-end: -80px; }
.auth-blob.blob-2 { width: 280px; height: 280px; background: #ffb3a3; bottom: -60px; inset-inline-start: -60px; animation-delay: 2s; }

.auth-container { position: relative; z-index: 1; display: flex; justify-content: center; }
.auth-card {
    width: 100%; max-width: 460px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 34px;
    box-shadow: var(--shadow-lg);
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 1.4rem; margin: 14px 0 8px; }
.auth-head p { color: var(--text-soft); font-size: .88rem; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--text-soft); font-size: .88rem; }
.auth-switch a { color: var(--primary-dark); font-weight: 700; }

.otp-input { text-align: center; font-size: 1.6rem; letter-spacing: 10px; font-weight: 700; }
.auth-resend { margin-top: 14px; }

/* پذیرش قوانین و مقررات */
.terms-check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-soft); cursor: pointer; line-height: 1.8; }
.terms-check input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.terms-check a { color: var(--primary); font-weight: 700; }

/* کپچای Turnstile */



/* ثبت‌نام: انتخاب شماره موبایل یا ایمیل */
.channel-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.channel-switch label { position: relative; cursor: pointer; }
.channel-switch input { position: absolute; opacity: 0; pointer-events: none; }
.channel-switch span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--text-soft); transition: background .2s, color .2s, box-shadow .2s; }
.channel-switch input:checked + span { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.channel-switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
/* فقط فیلد روش انتخاب‌شده دیده شود (مرورگرهای قدیمی هر دو را نشان می‌دهند و سرور بر اساس انتخاب عمل می‌کند) */
.auth-form:has(#chPhone:checked) .ch-email, .auth-form:has(#chEmail:checked) .ch-phone { display: none; }
.auth-forgot { margin: -6px 0 2px; text-align: left; font-size: .84rem; }
.auth-forgot a { color: var(--primary-dark); font-weight: 600; }
