/* Acuity Academy auth pages — randomized BG + two-column card */

:root {
  --aa-teal: #0d6e6e;
  --aa-teal-dark: #094f4f;
  --aa-teal-deeper: #053a3a;
  --aa-green: #1a4d2e;
  --aa-cream: #faf8f4;
  --aa-ink: #102a2a;
  --aa-slate: #4b5b66;
  --aa-line: rgba(13, 110, 110, 0.18);
}

.auth-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--aa-ink);
  min-height: 100vh;
  background-color: var(--aa-cream);
  background-image: var(--auth-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,248,244,0.55) 0%, rgba(13,110,110,0.18) 100%);
  pointer-events: none;
  z-index: 0;
}

.auth-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  width: 100%;
  max-width: 1080px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(5, 58, 58, 0.35), 0 8px 24px -8px rgba(5, 58, 58, 0.2);
}

/* --- LEFT PANEL ------------------------------------------------------ */
.auth-panel {
  background: linear-gradient(160deg, var(--aa-teal) 0%, var(--aa-teal-dark) 100%);
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.auth-panel-inner { display: flex; flex-direction: column; gap: 20px; height: 100%; }

.auth-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.85;
  text-transform: uppercase;
}

.auth-headline {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.auth-subtext {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.88;
  max-width: 36ch;
}

.auth-bullets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}
.auth-bullets li {
  display: flex; align-items: center; gap: 12px;
}
.auth-bullet-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}

.auth-testimonial {
  margin: 0;
  background: rgba(5, 58, 58, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
}
.auth-testimonial-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.22);
}
.auth-testimonial blockquote { margin: 0; }
.auth-testimonial p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
}
.auth-testimonial figcaption {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.82rem;
}
.auth-testimonial figcaption strong { font-weight: 600; }
.auth-testimonial figcaption span { opacity: 0.78; }

.auth-panel-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.auth-panel-cta:hover {
  background: rgba(255,255,255,0.14);
  border-color: #fff;
}

/* --- RIGHT FORM PANEL ----------------------------------------------- */
.auth-form-panel {
  padding: 48px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.auth-brand-mark img { height: 38px; width: auto; }
.auth-brand-mark .auth-brand-text { display: flex; flex-direction: column; line-height: 1; }
.auth-brand-mark .auth-brand-name { font-weight: 700; color: var(--aa-teal); font-size: 1.25rem; }
.auth-brand-mark .auth-brand-tag  { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--aa-slate); margin-top: 4px; }

.auth-h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--aa-teal);
  letter-spacing: -0.01em;
}
.auth-sub {
  margin: 0 0 26px;
  color: var(--aa-slate);
  font-size: 0.97rem;
}

.auth-flash {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  border: 1px solid;
}
.auth-flash--error  { background:#fdf2f2; border-color:#f5c2c2; color:#8a1f1f; }
.auth-flash--info   { background:#eef9f7; border-color:#bce0d8; color:#0e5d54; }

.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--aa-ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.auth-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.auth-input-wrap .auth-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--aa-slate); pointer-events: none; width: 18px; height: 18px;
}
.auth-input {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid #d8e0e3;
  border-radius: 10px;
  font-size: 0.97rem;
  background: #fff;
  color: var(--aa-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input:focus {
  outline: none;
  border-color: var(--aa-teal);
  box-shadow: 0 0 0 3px rgba(13,110,110,0.14);
}
.auth-input-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: var(--aa-slate);
}

.auth-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 18px;
  font-size: 0.92rem;
}
.auth-row-between label { display: inline-flex; gap: 8px; align-items: center; color: var(--aa-slate); font-weight: 500; }
.auth-row-between a { color: var(--aa-teal); text-decoration: none; font-weight: 600; }
.auth-row-between a:hover { text-decoration: underline; }

.auth-help {
  font-size: 0.82rem;
  color: var(--aa-slate);
  margin: -4px 0 14px;
}

.auth-btn-primary {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--aa-teal);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.06s ease;
  box-shadow: 0 8px 18px -8px rgba(13,110,110,0.55);
}
.auth-btn-primary:hover { background: var(--aa-teal-dark); }
.auth-btn-primary:active { transform: translateY(1px); }

.auth-alt-line {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: var(--aa-slate);
}
.auth-alt-line a { color: var(--aa-teal); font-weight: 600; text-decoration: none; }
.auth-alt-line a:hover { text-decoration: underline; }

.auth-divider {
  border: 0;
  border-top: 1px solid var(--aa-line);
  margin: 18px 0 12px;
}

.auth-footer-legal {
  position: relative;
  z-index: 1;
  margin: 18px 0 4px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* --- Password strength meter --- */
.auth-strength {
  display: flex; gap: 6px; margin-top: 6px; margin-bottom: 4px;
}
.auth-strength i {
  flex: 1; height: 4px; border-radius: 2px; background: #e6ecee; transition: background 0.2s ease;
  display: block;
}
.auth-strength[data-score="1"] i:nth-child(-n+1) { background: #e0816d; }
.auth-strength[data-score="2"] i:nth-child(-n+2) { background: #e6b34a; }
.auth-strength[data-score="3"] i:nth-child(-n+3) { background: #76b390; }
.auth-strength[data-score="4"] i:nth-child(-n+4) { background: var(--aa-teal); }
.auth-strength-label { font-size: 0.76rem; color: var(--aa-slate); }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 880px) {
  .auth-stage { padding: 16px 12px; }
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .auth-panel {
    padding: 32px 28px 28px;
    min-height: 0;
  }
  .auth-headline { font-size: 1.7rem; }
  .auth-form-panel { padding: 32px 28px 28px; min-height: 0; }
  .auth-h1 { font-size: 1.55rem; }
  .auth-panel-cta { margin-top: 10px; }
  .auth-testimonial { grid-template-columns: 48px 1fr; }
  .auth-testimonial-avatar { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .auth-form-panel { padding: 26px 22px 22px; }
  .auth-panel { padding: 28px 22px 22px; }
}
