/* auth.css — login & signup forms.
   Inherits glass.css for the gradient background; adds a centered glass card. */

.auth-stage {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--pad);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 22px;
  border-radius: 28px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.auth-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg,
    rgba(255,255,255,.42) 0%,
    rgba(255,255,255,0) 45%);
  pointer-events: none;
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--ink);
}
.auth-mark .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A3D, #FF3D7F);
  box-shadow: 0 0 0 2px rgba(255,255,255,.4),
              0 0 16px 2px rgba(255, 100, 150, .5);
}
.auth-mark .muted { opacity: .55; font-weight: 500; }

.auth-h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-row { display: flex; flex-direction: column; gap: 6px; }
.auth-lbl {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  pointer-events: none;
}
.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: .5px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.6);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: rgba(28,8,40,.5);
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 3px rgba(28,8,40,.06);
}
.auth-input.has-prefix { padding-left: 30px; }

.auth-hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.auth-error {
  background: rgba(255, 75, 90, .15);
  border: .5px solid rgba(180, 30, 50, .35);
  color: #6f0a18;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: none;
}
.auth-error.visible { display: block; }

.auth-btn {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .005em;
  cursor: pointer;
  background: linear-gradient(180deg, #1c0828 0%, #2a0d3a 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 8px 22px -8px rgba(28,8,40,.5);
  transition: transform .12s, box-shadow .15s, opacity .15s;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-foot a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(28,8,40,.18);
}
.auth-foot a:hover { border-bottom-color: var(--ink); }

.auth-back {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border: .5px solid var(--glass-stroke);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
  z-index: 5;
}
.auth-back:hover { background: var(--glass-bg-strong); }
