/* ============================================================
   auth.css — Login and Create Account page styles
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

/* Background glow */
.auth-page::before {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79,255,176,.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2.8rem 3rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-header { text-align: center; margin-bottom: 2.2rem; }
.auth-icon   { font-size: 2.2rem; color: var(--accent); margin-bottom: .9rem; }
.auth-title  {
  font-family: var(--font-head); font-size: 1.7rem;
  font-weight: 800; letter-spacing: -.03em; margin-bottom: .4rem;
}
.auth-sub { font-size: .9rem; color: var(--muted); }

.auth-form  { display: flex; flex-direction: column; gap: 1.1rem; }

/* Two-column row for first/last name */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.auth-submit {
  margin-top: .4rem;
  width: 100%;
  justify-content: center;
}

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: .5rem 0; color: var(--muted); font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; margin-left: .25rem; }
.auth-footer a:hover { text-decoration: underline; }

/* Password strength indicator */
.pw-strength { margin-top: .4rem; }
.pw-strength-bar {
  height: 3px; border-radius: 2px;
  background: var(--surface2);
  overflow: hidden; margin-bottom: .3rem;
}
.pw-strength-fill {
  height: 100%; border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0;
}
.pw-strength-fill.weak   { background: var(--accent3); }
.pw-strength-fill.fair   { background: var(--accent4); }
.pw-strength-fill.strong { background: var(--accent); }
.pw-strength-label { font-size: .72rem; color: var(--muted); }

/* Alert inside auth card */
.auth-alert { margin-bottom: 1rem; }

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.5rem; }
  .auth-row  { grid-template-columns: 1fr; }
}
