/* ============================================================
   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);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(255, 184, 0, 0.07) 0%, transparent 70%);
  padding: 24px 16px;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── 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;
}

/* ── Logo ─────────────────────────────────────────────────── */
.auth-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--zx-text-primary);
  user-select: none;
  text-align: center;
}

/* ── 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);
  transition: color var(--zx-transition);
}

.auth-forgot:hover {
  color: var(--zx-yellow);
}

/* ── 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;
}

/* ── Divider ──────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--zx-text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--zx-border);
}

/* ── Switch link ──────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--zx-text-muted);
}

.auth-switch a {
  font-weight: 600;
  color: var(--zx-yellow);
}

.auth-switch a:hover {
  color: var(--zx-yellow-hover);
}

/* ── Footer ───────────────────────────────────────────────── */
.auth-footer {
  font-size: 12px;
  color: var(--zx-text-muted);
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: var(--zx-radius-md);
  }
}
