/* ============================================================
   ZX17 Auth — auth.css
   Login + Register standalone pages
   ============================================================ */

/* ── Page shell ───────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--zx-bg-primary);
  padding: 24px 16px;
  position: relative;
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%,
      rgba(255,183,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 10%,
      rgba(255,255,255,.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 10%,
      rgba(255,255,255,.04) 0%, transparent 60%);
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* ── Card ─────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background-color: var(--zx-bg-secondary);
  border: 1px solid var(--zx-border);
  border-radius: var(--zx-radius-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Brand block (logo + tagline) ─────────────────────────── */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.auth-logo {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  user-select: none;
  text-align: center;
  text-shadow: 0 0 18px rgba(255,183,0,.12);
  transition: opacity var(--zx-transition);
}

.auth-logo:hover {
  opacity: .85;
}

.auth-logo .logo-x {
  color: #FFB700;
}

.auth-tagline {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,183,0,.55);
  text-align: center;
  user-select: none;
}

/* ── Heading ──────────────────────────────────────────────── */
.auth-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--zx-text-primary);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--zx-text-muted);
}

/* ── Form ─────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Label row (password + forgot link) ──────────────────── */
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-forgot {
  font-size: 12px;
  color: var(--zx-text-muted);
  opacity: .72;
  transition: color var(--zx-transition), opacity var(--zx-transition);
}

.auth-forgot:hover {
  color: rgba(255,183,0,.8);
  opacity: 1;
}

/* ── Password field with eye toggle ──────────────────────── */
.auth-pass-wrap {
  position: relative;
}

.auth-pass-input {
  padding-right: 42px;
}

.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: var(--zx-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color var(--zx-transition);
}

.auth-eye:hover {
  color: var(--zx-text-primary);
}

/* ── Password strength (register only) ───────────────────── */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.auth-strength-bar {
  flex: 1;
  height: 3px;
  background-color: var(--zx-bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.auth-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.auth-strength-fill.weak   { width: 33%;  background-color: var(--zx-error); }
.auth-strength-fill.medium { width: 66%;  background-color: var(--zx-yellow); }
.auth-strength-fill.strong { width: 100%; background-color: var(--zx-success); }

.auth-strength-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--zx-text-muted);
  min-width: 52px;
  text-align: right;
}

.auth-strength-label.weak   { color: var(--zx-error); }
.auth-strength-label.medium { color: var(--zx-yellow); }
.auth-strength-label.strong { color: var(--zx-success); }

/* ── Error message ────────────────────────────────────────── */
.auth-error {
  font-size: 13px;
  color: var(--zx-error);
  text-align: center;
  min-height: 0;
  line-height: 1.5;
  transition: opacity var(--zx-transition);
}

.auth-error:empty {
  display: none;
}

/* ── Status icon (reset / forgot result states) ──────────── */
.auth-status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.auth-status-ok {
  color: #4ade80;
  background: rgba(74, 222, 128, .08);
}

.auth-status-bad {
  color: var(--zx-error);
  background: rgba(255, 80, 80, .07);
}

/* ── Switch outline button ────────────────────────────────── */
.auth-switch-btn {
  display: block;
  width: 100%;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid rgba(255,183,0,.25);
  border-radius: var(--zx-radius-md);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--zx-transition), color var(--zx-transition), background var(--zx-transition);
}

.auth-switch-btn:hover {
  border-color: rgba(255,183,0,.5);
  color: #fff;
  background: rgba(255,183,0,.04);
}

/* ── Footer ───────────────────────────────────────────────── */
.auth-footer {
  font-size: 12px;
  color: var(--zx-text-muted);
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-body {
    align-items: flex-start;
    padding-top: 48px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: var(--zx-radius-md);
  }
}
