/* ============================================================
   Caller ID Faker — Auth pages
   Loaded on /login, /signup, /forgot-password, /reset-password
   on top of landing.css (which provides tokens + base components).
   ============================================================ */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}

.auth__left {
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  position: relative;
}

.auth__body {
  flex: 1;
  display: flex;
  align-items: center;
}

.auth__form-wrap {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.auth__title {
  font-size: 34px;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--fg);
}

.auth__subtitle {
  color: var(--fg-muted);
  font-size: 16px;
  margin-top: 10px;
}

.auth__form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__footer-text {
  margin-top: 24px;
  font-size: 14px;
  color: var(--fg-muted);
}

.auth__footer-text a {
  color: var(--accent-ink);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.auth__footer-text a:hover { text-decoration: underline; }

.auth__legal {
  font-size: 12px;
  color: var(--fg-subtle);
}
.auth__legal a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.auth__legal a:hover { text-decoration: underline; }

.auth__right {
  background: var(--accent-soft-2);
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth__right-dots {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.auth__right-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  padding: 40px;
}

.auth__card {
  padding: 24px;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.auth__card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.auth__card-name { font-weight: 500; color: var(--fg); }
.auth__card-number { font-size: 13px; color: var(--fg-muted); }

.auth__blurb {
  margin-top: 20px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.auth__blurb b { color: var(--fg); font-weight: 500; }

/* Inline error row above submit — Alpine-driven. */
.auth__error {
  padding: 10px 14px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: var(--r-md);
  font-size: 14px;
}

/* Terms checkbox row */
.auth__terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 6px;
}
.auth__terms input { margin-top: 3px; }
.auth__terms a { color: var(--accent-ink); cursor: pointer; text-decoration: none; }
.auth__terms a:hover { text-decoration: underline; }

/* Forgot step-2 confirmation card */
.auth__confirm {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft-2);
  display: flex;
  gap: 14px;
  align-items: center;
}
.auth__confirm-icon {
  width: 44px; height: 44px; border-radius: 12px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.auth__confirm-title { font-weight: 500; margin-bottom: 2px; color: var(--fg); }
.auth__confirm-sub { font-size: 13px; color: var(--fg-muted); }
.auth__confirm-sub b { color: var(--fg); }

.auth__hint {
  font-size: 13px;
  color: var(--fg-subtle);
  padding: 12px 14px;
  background: var(--bg-muted);
  border-radius: 12px;
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.auth__hint-icon { color: var(--accent-ink); }

.auth__resend-row {
  font-size: 13px;
  color: var(--fg-subtle);
  text-align: center;
}
.auth__resend-row a {
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}
.auth__resend-row a:hover { text-decoration: underline; }

/* Password strength meter */
.auth__strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth__strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-muted);
  overflow: hidden;
}
.auth__strength-fill {
  height: 100%;
  transition: width 0.2s, background 0.2s;
}
.auth__strength-label {
  font-size: 12px;
  font-weight: 500;
  min-width: 60px;
  text-align: right;
}

.auth__field-hint {
  font-size: 12px;
  margin-top: 4px;
}
.auth__field-hint--err { color: var(--danger); }
.auth__field-hint--ok { color: var(--accent-ink); }

.auth__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.auth__label-row a {
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
}
.auth__label-row a:hover { text-decoration: underline; }

/* Disabled submit state */
.auth__form .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Collapse to single column on narrow viewports. */
@media (max-width: 800px) {
  .auth { grid-template-columns: 1fr; }
  .auth__right { display: none; }
  .auth__left { padding: 24px 20px; }
}

[x-cloak] { display: none !important; }
