/* Sign-in / sign-up. Form column + product column; the form column comes first in reading order. */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, 560px) 1fr; background: var(--bg); }

.auth-main { display: flex; flex-direction: column; min-height: 100dvh; padding: 28px clamp(20px, 5vw, 56px); background: var(--surface); border-inline-end: 1px solid var(--border); }
.auth-top { display: flex; align-items: center; gap: 12px; }
.auth-top .brand { padding: 0; text-decoration: none; }
.auth-top .brand .name, .auth-top .brand .sub { display: block; }

.auth-card { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth-tabs { display: flex; width: 100%; margin-bottom: 32px; }
.auth-tabs button { flex: 1; height: 34px; font-weight: 500; }
.auth-form h1 { margin: 0 0 8px; font-size: 32px; font-weight: 400; color: var(--text-strong); }
html[lang="fa"] .auth-form h1 { font-size: 26px; }
.auth-form .lead { margin: 0 0 26px; }
.auth-form .field { margin-bottom: 16px; }
.input.lg, .select.lg { height: 42px; font-size: 14.5px; }
.btn.lg { height: 44px; font-size: 14.5px; }
.auth-form .btn.primary { margin: 6px 0 16px; }
.center { text-align: center; }
.dest { display: flex; }
.dest button { flex: 1; }

.pw { position: relative; }
.pw .input { padding-inline-end: 44px; }
.pw-toggle { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--hover); color: var(--text-strong); }
.caps { color: var(--yellow); font-weight: 600; }

.addr { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.addr:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.addr .input, .addr .select { border: 0; box-shadow: none !important; background: transparent; }
.addr .input { flex: 1; min-width: 0; }
.addr .select { width: auto; max-width: 55%; color: var(--muted); padding-inline-end: 8px; }
.addr .at { display: grid; place-items: center; color: var(--muted); padding: 0 2px; }
.hint.ok { color: var(--green); }
.hint.bad { color: var(--red); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.strength i { height: 4px; border-radius: 2px; background: var(--active); transition: background-color 0.2s ease; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--yellow); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--blue); }
.strength[data-score="4"] i { background: var(--green); }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: var(--red-bg); color: var(--red); font-size: 13px; }
.notice-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); margin-bottom: 18px; }
.notice-icon.wait { background: var(--yellow-bg); color: var(--yellow); }
.notice-icon .icon { width: 24px; height: 24px; }

.auth-foot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.auth-foot a { color: var(--muted); }

/* product column */
.auth-side { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 48px; background: #14161a; color: #d9dce1; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); }
.side-inner { position: relative; width: 100%; max-width: 520px; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b93a1; }
html[lang="fa"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.auth-side h2 { margin: 0 0 30px; font-size: 38px; font-weight: 400; color: #ffffff; }
html[lang="fa"] .auth-side h2 { font-size: 30px; line-height: 1.5; }
.features { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features b { display: block; color: #ffffff; font-weight: 600; margin-bottom: 2px; }
.features li > span:last-child > span { color: #9aa1ad; font-size: 13.5px; }
.fi { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #cfd6e0; border: 1px solid rgba(255, 255, 255, 0.08); }

.preview { border-radius: 12px; background: #1c1f25; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; animation: lift 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } }
.pv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; color: #8b93a1; }
.pv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f48; }
.pv-bar span { margin-inline-start: 8px; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.pv-row:last-child { border-bottom: 0; }
.pv-row .av { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; direction: ltr; }
.av.a1 { background: #1d2e3a; color: #8ac6ef; } .av.a2 { background: #213025; color: #9dcfa2; } .av.a3 { background: #2c2538; color: #c3aef0; }
.pv-text { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.pv-text b { color: #eef0f3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-text span { color: #8b93a1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-row.unread .pv-text b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6cb4e6; margin-inline-start: 8px; vertical-align: middle; }
.pv-time { font-size: 12px; color: #6f7785; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { border-inline-end: 0; padding: 20px 16px; }
  .auth-card { padding: 28px 0; }
}
