/* ============================================================
   P.Thai Capital — Auth pages (login / register / reset)
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 20px;
}

.auth-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
}

.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-back:hover { color: var(--neon); }

.auth-card {
  background:
    linear-gradient(180deg, rgba(15, 20, 28, 0.9), rgba(15, 20, 28, 0.98)),
    radial-gradient(circle at top right, rgba(0, 255, 159, 0.08), transparent 50%);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 255, 159, 0.05);
  backdrop-filter: blur(20px);
}

.auth-card__head { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 72px; height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}
.auth-card__head h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-card__head p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: all 0.2s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 159, 0.1);
}

.auth-pw { position: relative; }
.auth-pw input { padding-right: 48px; }
.auth-pw__toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-mute);
  cursor: pointer;
  padding: 6px;
  display: grid; place-items: center;
  transition: color 0.2s;
}
.auth-pw__toggle:hover { color: var(--neon); }

.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}
.auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.auth-check input { accent-color: var(--neon); }
.auth-forgot {
  font-size: 0.85rem;
  color: var(--neon-2);
}

.auth-err {
  padding: 12px;
  background: rgba(255, 85, 119, 0.08);
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-size: 0.88rem;
  text-align: center;
}

.auth-divider {
  text-align: center;
  margin: 24px 0 18px;
  position: relative;
  color: var(--text-mute);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { background: transparent; padding: 0 12px; }

.auth-demo {
  background: rgba(0, 255, 159, 0.04);
  border: 1px dashed rgba(0, 255, 159, 0.25);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}
.auth-demo p { margin-bottom: 10px; font-size: 0.88rem; color: var(--text); }
.auth-demo__creds {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.auth-demo__creds code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  color: var(--neon);
}

.auth-card__foot {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.auth-card__foot a { color: var(--neon); font-weight: 500; }

/* ==== Additions for Phase 2 ==== */
.auth-mode {
  padding: 10px 14px;
  background: rgba(255, 184, 77, 0.08);
  border: 1px solid rgba(255, 184, 77, 0.3);
  border-radius: 8px;
  color: var(--amber);
  font-size: 0.82rem;
  margin-bottom: 16px;
  text-align: center;
}

.auth-google {
  display: inline-flex !important;
  align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 0;
}
.auth-google svg { flex-shrink: 0; }

.auth-ok {
  padding: 12px;
  background: rgba(0, 255, 159, 0.08);
  border: 1px solid var(--neon);
  border-radius: 8px;
  color: var(--neon);
  font-size: 0.88rem;
  text-align: center;
}

.auth-check--full {
  display: flex !important; align-items: flex-start; gap: 10px;
  font-size: 0.84rem !important;
  line-height: 1.5;
}
.auth-check--full span { color: var(--text-dim); }
.auth-check--full a { color: var(--neon-2); }

.auth-demo-dd {
  margin-top: 20px;
  padding: 12px;
  background: rgba(15, 20, 28, 0.5);
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.auth-demo-dd summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
  list-style: none;
  padding: 4px 0;
}
.auth-demo-dd summary::-webkit-details-marker { display: none; }
.auth-demo-dd[open] summary { color: var(--neon); margin-bottom: 10px; }
.auth-demo-dd .auth-demo__creds { margin: 10px 0; }

.pw-strength {
  margin-top: 6px;
  display: flex; align-items: center; gap: 10px;
}
.pw-strength > span {
  height: 4px;
  width: 0;
  background: var(--text-mute);
  border-radius: 100px;
  transition: width 0.3s, background 0.3s;
  flex-grow: 1;
  max-width: 140px;
}
.pw-strength em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
}
