/* ── AUTH PAGES — verify email + change password ── */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  margin-top: 100px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-card-top {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.auth-card-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}
.auth-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.auth-card-title .gold { color: var(--gold); }
.auth-card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.auth-card-body { padding: 2rem 2.5rem 2.5rem; }

/* ── FORM ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.auth-form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-2);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.auth-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.auth-error {
  font-size: 0.78rem;
  color: #fc8181;
}

/* ── STRENGTH METER ── */
.auth-strength {
  display: flex;
  gap: 4px;
  margin-top: 0.4rem;
}
.auth-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.3s;
}
.auth-strength-bar.weak   { background: #fc8181; }
.auth-strength-bar.fair   { background: var(--gold); }
.auth-strength-bar.strong { background: #68d391; }

/* ── VERIFY EMAIL SPECIFIC ── */
.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.verify-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.verify-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.verify-step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.verify-step-text strong { color: var(--text); font-weight: 500; }

.verify-resend {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.verify-resend p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* ── SUCCESS STATE ── */
.auth-success {
  text-align: center;
  padding: 1rem 0;
}
.auth-success-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}
.auth-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.auth-success-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── BOTTOM LINK ── */
.auth-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-bottom a { color: var(--gold); text-decoration: none; }
.auth-bottom a:hover { text-decoration: underline; }

/* ── ALERTS ── */
.auth-alert {
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid;
  margin-bottom: 1rem;
}
.auth-alert-success { background: rgba(72,187,120,0.1); border-color: rgba(72,187,120,0.3); color: #68d391; }
.auth-alert-error   { background: rgba(224,82,82,0.1);  border-color: rgba(224,82,82,0.3);  color: #fc8181; }

/* ── REMEMBER ME + FORGOT PASSWORD ROW ── */
.auth-form-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  display: none;
}
.auth-remember-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.auth-remember input[type="checkbox"]:checked + .auth-remember-box {
  background: var(--gold);
  border-color: var(--gold);
}
.auth-remember input[type="checkbox"]:checked + .auth-remember-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #0d1117;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.auth-remember:hover .auth-remember-box {
  border-color: var(--gold-dim);
}

.auth-forgot {
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-forgot:hover { opacity: 0.75; }

@media (max-width: 480px) {
  .auth-card-top  { padding: 2rem 1.5rem 1.5rem; }
  .auth-card-body { padding: 1.5rem; }
  .auth-form-extra { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}