/* Sign in / sign up / account */
.auth-section { background: var(--bg-soft); padding: 56px 0 80px; min-height: 60vh; display: grid; align-items: start; justify-items: center; padding-left: 16px; padding-right: 16px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.8rem; font-weight: 800; }
.auth-card h2 { font-size: 1.1rem; margin: 26px 0 12px; }
.auth-sub { color: var(--muted); margin: 6px 0 22px; }
.auth-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.auth-card label small { font-weight: 400; color: var(--muted); }
.auth-card input:not([type=hidden]) { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.auth-card input:focus { outline: 2px solid var(--magenta); border-color: transparent; }
.auth-card form > .btn { width: 100%; margin-top: 4px; }
.auth-alt { text-align: center; color: var(--muted); margin: 20px 0 0; font-size: .95rem; }
.auth-alt a, .auth-link { color: var(--magenta); font-weight: 600; }
.auth-flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; font-weight: 600; }
.auth-flash.error { background: #fde8f2; color: #9c0c5b; }
.auth-flash.success { background: #e5f6f1; color: #11705a; }

.order-list { list-style: none; margin: 0 0 24px; padding: 0; }
.order-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-list small { display: block; color: var(--muted); }
.order-list .status { padding: 4px 12px; border-radius: 99px; background: var(--bg-soft); font-size: .82rem; font-weight: 600; }

@media (max-width: 480px) {
  .auth-section { padding-top: 28px; }
  .auth-card { padding: 24px 18px; }
}

/* Sign in / sign up: split screen (brand on the left, form on the right) */
.auth-body { background: #fff; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

.auth-brand { position: relative; overflow: hidden; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 32px; text-align: center; }
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-brand::before { width: 420px; height: 420px; top: -160px; left: -140px; background: var(--magenta); opacity: .22; }
.auth-brand::after { width: 360px; height: 360px; bottom: -150px; right: -120px; background: var(--cyan); opacity: .2; }
.auth-logo { position: relative; z-index: 1; display: block; width: min(300px, 62%); background: #fff; border-radius: 28px; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.auth-logo img { width: 100%; height: auto; }
.auth-tagline { position: relative; z-index: 1; margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.3; max-width: 22ch; }
.auth-tagline b { color: var(--yellow); font-weight: 800; }
.auth-dots { position: relative; z-index: 1; display: flex; gap: 8px; }
.auth-dots i { width: 10px; height: 10px; border-radius: 50%; }
.auth-dots i:nth-child(1) { background: var(--magenta); }
.auth-dots i:nth-child(2) { background: var(--cyan); }
.auth-dots i:nth-child(3) { background: var(--yellow); }
.auth-dots i:nth-child(4) { background: #fff; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; }
.auth-box .auth-sub { margin-bottom: 26px; }
.auth-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.auth-box label small { font-weight: 400; color: var(--muted); }
.auth-box input:not([type=hidden]) { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.auth-box input:focus { outline: 2px solid var(--magenta); border-color: transparent; }
.auth-box form > .btn { width: 100%; margin-top: 4px; }
.auth-back { display: inline-block; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.auth-back:hover { color: var(--magenta); }

/* Mobile: brand becomes a compact band on top, form below */
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { flex-direction: row; gap: 16px; padding: 18px 20px; text-align: left; justify-content: flex-start; }
  .auth-brand::before { width: 220px; height: 220px; top: -110px; left: -80px; }
  .auth-brand::after { width: 200px; height: 200px; bottom: -110px; right: -60px; }
  .auth-logo { width: 72px; flex: none; border-radius: 16px; padding: 4px; box-shadow: none; }
  .auth-tagline { font-size: 1rem; max-width: none; }
  .auth-dots { display: none; }
  .auth-panel { align-items: flex-start; padding: 28px 20px 40px; }
}

/* sign in / up: small helpers, the code page */
.auth-hint { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.auth-forgot { margin: -6px 0 14px; text-align: right; font-size: .9rem; }
.auth-forgot a { color: var(--magenta); font-weight: 600; }
.auth-or { color: var(--muted); }
.auth-resend { margin-top: 18px; text-align: center; color: var(--muted); font-size: .92rem; }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--magenta); text-decoration: underline; cursor: pointer; }
.link-button[disabled] { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.auth-box input.code-input { padding: 16px 12px; font-size: 2rem; font-weight: 800; letter-spacing: .5em; text-align: center; font-family: "Courier New", monospace; }
.auth-box .code-field { text-align: center; }
