/* ===========================================================================
   Auth — frontend/login.html (Sign In / Create Account)
   ---------------------------------------------------------------------------
   Built from `TradeMesh Login Package/TradeMesh Login.dc.html`. Deliberately
   NOT a fifth visual system: reuses landing.css's dark palette + falling-
   masonry wallpaper wholesale (link base.css + landing.css + landing.js on
   login.html, same as landing/index.html) — the login reference is where
   that background mechanic originally came from, and landing already
   carries the "match dashboard.html's colors" correction, so reusing it
   here keeps the whole marketing→auth→app journey visually continuous.
   This file only adds the card/form-specific pieces landing.css doesn't
   have. Scoped under body.landing (same body class as landing.html).
   =========================================================================== */

.auth-shell { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; z-index: 1; }
.auth-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 900px 700px at 50% 46%, rgba(17, 17, 24, 0.4) 0%, rgba(17, 17, 24, 0.88) 62%, rgba(11, 11, 15, 0.97) 100%);
}
.auth-card {
  position: relative; z-index: 1; width: 400px; max-width: 100%; max-height: calc(100vh - 48px); overflow-y: auto;
  background: rgba(25, 25, 31, 0.92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--lp-border); border-radius: 20px; padding: 34px 32px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-brand-mark { position: relative; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--lp-accent); }
.auth-brand-mark img { position: absolute; top: 50%; left: 50%; width: 150%; height: 150%; transform: translate(-50%, -50%); object-fit: contain; }
.auth-brand-text { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; }

.auth-tabs { display: flex; background: var(--lp-bg); border-radius: 11px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--lp-text-2); }
.auth-tab.active { background: var(--lp-accent); color: #fff; }

.auth-headline { font-size: 20px; font-weight: 800; font-family: 'Sora', sans-serif; margin-bottom: 4px; }
.auth-subhead { font-size: 13px; color: var(--lp-text-2); margin-bottom: 22px; }

.auth-field-group { margin-bottom: 14px; }
.auth-field-label-row { display: flex; align-items: center; margin-bottom: 7px; }
.auth-field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--lp-text-2); }
.auth-forgot-link { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--lp-accent); cursor: pointer; }
.auth-input {
  width: 100%; background: var(--lp-bg); border: 1px solid var(--lp-border); border-radius: 10px;
  padding: 11px 13px; font-size: 13.5px; color: inherit; outline: none; font-family: inherit;
}
.auth-input:focus { border-color: var(--lp-accent); }
.auth-input.err { border-color: var(--lp-red); }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 40px; }
.auth-eye-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; cursor: pointer; color: var(--lp-text-2); background: none; border: none; padding: 0; }
.auth-err-msg { font-size: 12.5px; color: var(--lp-red); margin-bottom: 4px; }

.auth-remember-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; cursor: pointer; }
.auth-checkbox { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--lp-text-3); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--lp-accent-ink); flex-shrink: 0; }
.auth-checkbox.checked { background: var(--lp-accent); border-color: var(--lp-accent); color: #fff; }
.auth-remember-label { font-size: 13px; color: var(--lp-text-2); }

.auth-submit { margin-top: 22px; background: var(--lp-accent); color: #fff; text-align: center; font-weight: 800; font-size: 14px; padding: 12px; border-radius: 11px; cursor: pointer; border: none; width: 100%; font-family: inherit; }
.auth-submit:hover { background: var(--lp-accent-2); }
.auth-footer-prompt { text-align: center; font-size: 13px; color: var(--lp-text-2); margin-top: 22px; }
.auth-footer-action { color: var(--lp-accent); font-weight: 700; cursor: pointer; }

.auth-otp-row { display: flex; gap: 8px; margin-bottom: 8px; }
.auth-otp-digit {
  width: 100%; aspect-ratio: 1; background: var(--lp-bg); border: 1px solid var(--lp-border); border-radius: 10px;
  text-align: center; font-size: 20px; font-weight: 700; color: inherit; outline: none; font-family: var(--lp-mono, monospace);
}
.auth-otp-digit:focus { border-color: var(--lp-accent); }
.auth-otp-digit.err { border-color: var(--lp-red); }

.auth-resend-row { display: flex; justify-content: center; margin-top: 4px; }
.auth-resend-link { font-size: 12.5px; font-weight: 700; color: var(--lp-accent); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.auth-resend-link:disabled { color: var(--lp-text-3); cursor: default; }

.auth-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--lp-text-2); cursor: pointer; margin-bottom: 18px; }
.auth-back-link:hover { color: var(--lp-text); }

.auth-success-msg { font-size: 12.5px; color: var(--lp-green); margin-bottom: 4px; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
}
