/* =========================================================
   Sreera Agency — Login and Register pages
   Loads after style.css.
   ========================================================= */

.auth { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; min-height: 100vh; min-height: 100dvh; }

/* ---------- Brand side ---------- */
.auth-side {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 40px 48px; color: rgba(255,255,255,.78); overflow: hidden;
  background:
    radial-gradient(520px 360px at 0% 0%, rgba(96,46,135,.75), transparent 70%),
    radial-gradient(420px 320px at 100% 100%, rgba(211,5,5,.28), transparent 70%),
    var(--deep);
}
.auth-side .logo img { height: 44px; width: auto; }
.auth-side h2 { color: #fff; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 14px; }
.auth-side h2 .accent { color: var(--yellow); }
.auth-side .badge-live { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.auth-side > div > p { font-size: 17px; max-width: 420px; }
.auth-points { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-points .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,215,31,.14); color: var(--yellow); }
.auth-points strong { display: block; color: #fff; font-size: 15px; }
.auth-points span { font-size: 14px; }
.auth-side-foot { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Form side ---------- */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 28px 24px; background: var(--violet-50); }
.auth-top { width: 100%; max-width: 520px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-top .logo { visibility: hidden; }
.auth-top .logo img { height: 34px; width: auto; }
.auth-top .link-arrow .ic { transform: rotate(180deg); }
.auth-top .link-arrow:hover .ic { transform: rotate(180deg) translateX(4px); }

.auth-card.callback-form {
  width: 100%; max-width: 520px; margin: auto 0; padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.auth-card h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.auth-card .sub { margin: 8px 0 28px; font-size: 16px; }
.auth-legal { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-legal a { color: var(--violet); }
.auth-legal a:hover { text-decoration: underline; }

/* Steps */
.step { display: none; flex-direction: column; gap: 16px; }
.step.active { display: flex; animation: fadeIn .3s ease; }
.field-err { min-height: 0; font-size: 13px; font-weight: 600; color: var(--red); }
.field-err:empty { display: none; }
.field-hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.auth-card .btn-block { margin-top: 4px; }
.auth-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0 2px; font: 600 14px var(--font); color: var(--violet); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.auth-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; }
.auth-switch a { color: var(--violet); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.check-line { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; color: var(--body) !important; line-height: 1.5; cursor: pointer; }
.check-line input { width: 18px !important; height: 18px !important; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--violet); }
.check-line a { color: var(--violet); font-weight: 600; }

/* OTP boxes */
.otp-to { font-size: 15px; }
.otp-to strong { color: var(--text); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.otp-boxes input {
  height: 58px !important; padding: 0 !important; text-align: center;
  font-size: 24px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums;
}
.otp-boxes input.filled { border-color: var(--violet); background: var(--violet-50); }
.resend { font-size: 14px; color: var(--muted); text-align: center; }
.demo-note { padding: 10px 12px; border-radius: 10px; background: #FFF8D6; color: #6B5300; font-size: 13px; }

/* Stepper (register) */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 28px; counter-reset: s; }
.stepper li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.stepper li.done::before, .stepper li.current::before { background: var(--violet); }
.stepper li.current { color: var(--violet); }
.stepper li.done { color: var(--text); }

/* Role choice */
.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-group legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  height: 84px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text); transition: border-color .2s, background .2s;
}
.choice span .ic { color: var(--violet); }
.choice input:checked + span { border-color: var(--violet); background: var(--violet-50); box-shadow: 0 0 0 1px var(--violet) inset; }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.seller-note { padding: 12px 14px; border-radius: 10px; background: var(--violet-50); font-size: 14px; }
.seller-note a { color: var(--violet); font-weight: 600; }

/* KYC blocks */
.kyc-block { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.kyc-block.verified { border-color: rgba(18,161,80,.45); background: rgba(18,161,80,.04); }
.kyc-head { display: flex; align-items: center; gap: 12px; }
.kyc-head > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--violet-50); color: var(--violet); }
.kyc-head h3 { font-size: 16px; margin: 0 !important; }
.kyc-head p { font-size: 13px; color: var(--muted); }
.kyc-state { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--violet-50); color: var(--muted); white-space: nowrap; }
.kyc-block.verified .kyc-state { background: rgba(18,161,80,.12); color: var(--green); }
.kyc-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.kyc-row .btn { height: 46px; }
.kyc-block.verified input, .kyc-block.verified .btn { pointer-events: none; }
.kyc-block.verified .btn { opacity: .5; }
.kyc-block[data-kyc="selfie"].verified .btn { opacity: 1; pointer-events: auto; }  /* allow retake */
.status-list .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upper { text-transform: uppercase; }
.selfie { display: flex; align-items: center; gap: 14px; }
.selfie-preview {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--violet-50); color: var(--violet); border: 1.5px dashed var(--line);
}
.selfie-preview img { width: 100%; height: 100%; object-fit: cover; }
.selfie-preview .ic { width: 30px; height: 30px; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn { position: relative; }
.file-btn:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 10px; }
.skip-row { display: flex; justify-content: center; }

/* Done */
.done-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,161,80,.12); color: var(--green); margin: 0 auto; }
.done-icon .ic { width: 36px; height: 36px; }
.step[data-step="done"] { text-align: center; }
.status-list { text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list .ok { color: var(--green); font-weight: 700; font-size: 13px; }
.status-list .todo { color: #A07400; font-weight: 700; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-top .logo { visibility: visible; }
  .auth-main { padding: 16px; }
  .auth-card.callback-form { margin: 24px 0 auto; padding: 28px 20px; }
}
@media (max-width: 420px) {
  .otp-boxes { gap: 6px; }
  .otp-boxes input { height: 50px !important; font-size: 20px !important; }
  .choice span { height: 76px; font-size: 13px; }
  .two-col, .kyc-row { grid-template-columns: 1fr; }
  .auth-top .link-arrow { font-size: 14px; }
}
