/* ==========================================================================
   Split-screen auth pages (tutor registration), matching the live site.
   Mobile: single column, marketing panel hidden, compact logo shown instead.
   Desktop (>=768px): 50/50 split, both panels full height.
   ========================================================================== */

.auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  .auth { grid-template-columns: 1fr 1fr; }
}

/* ---------- Left: marketing panel ---------------------------------------- */

.auth__aside {
  display: none;
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  background: var(--edsy-bg);
  align-content: center;
}

/* Two soft circles, as on the live page. */
.auth__aside::before,
.auth__aside::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(165, 201, 60, 0.07);
  pointer-events: none;
}
.auth__aside::before { width: 340px; height: 340px; top: -120px; right: -60px; }
.auth__aside::after  { width: 280px; height: 280px; bottom: -140px; left: -90px; }

@media (min-width: 768px) {
  .auth__aside { display: grid; }
}

.auth__aside-inner { position: relative; z-index: 1; max-width: 30rem; }

.auth__wordmark {
  font-family: var(--edsy-heading-font);
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3rem);
  font-weight: 900;
  color: var(--edsy-primary);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.auth__aside h1 {
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.auth__aside p.lead {
  color: var(--edsy-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.auth__benefits { list-style: none; margin: 0 0 2rem; padding: 0; }
.auth__benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--edsy-text-secondary);
  font-size: 0.9375rem;
}
.auth__tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(165, 201, 60, 0.16);
  border: 1px solid var(--edsy-border);
  color: var(--edsy-primary);
  font-size: 0.8125rem;
  font-weight: 900;
}

/* ---------- Right: form panel -------------------------------------------- */

.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem) 1.25rem;
  background: #1a3830;
}

.auth__panel { width: 100%; max-width: 24rem; margin-inline: auto; }

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--edsy-text-muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}
.auth__back:hover { color: var(--edsy-primary); text-decoration: none; }

/* Compact wordmark, shown only where the marketing panel is hidden. */
.auth__mobile-logo {
  display: block;
  text-align: center;
  font-family: var(--edsy-heading-font);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--edsy-primary);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .auth__mobile-logo { display: none; } }

.auth__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
}
.auth__subtitle {
  color: var(--edsy-text-muted);
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
/* The login panel is left-aligned; registration is centred. */
.auth__title--left { text-align: left; font-size: 1.5rem; font-weight: 800; }
.auth__subtitle--left { text-align: left; font-size: 0.8125rem; }

/* Logo + wordmark side by side. */
.auth__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.auth__brand-row--center { justify-content: center; margin-bottom: 0.75rem; }
.auth__brand-row img {
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  flex: none;
}
.auth__panel-wordmark {
  font-family: var(--edsy-heading-font);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--edsy-primary);
  line-height: 1;
}

/* Right-aligned "Forgot password?" under the password field. */
.forgot-row { text-align: right; margin-bottom: 0.9rem; }
.forgot-row a { font-size: 0.75rem; color: var(--edsy-primary); }

/* Solid full-width sign-in button (taller than the gradient one). */
.btn--signin {
  width: 100%;
  min-height: 48px;
  background: var(--edsy-primary);
  color: var(--edsy-on-primary);
  border: 0;
  font-size: 1rem;
  font-weight: 700;
}
.btn--signin:hover { background: var(--edsy-primary-light); }

.btn--sm { min-height: 34px; padding: 0.25rem 0.85rem; font-size: 0.8125rem; }

/* "New tutor? Register Now" box. */
.auth__cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: var(--edsy-radius);
  color: var(--edsy-text-secondary);
  font-size: 0.875rem;
}

/* ---------- Step indicator ----------------------------------------------- */

.steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.steps__item { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.steps__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--edsy-surface);
  border: 1px solid #3D6B5A;
  color: var(--edsy-text-muted);
}
.steps__label { font-size: 0.6875rem; color: var(--edsy-text-muted); }
.steps__line { flex: 1 1 auto; height: 1px; background: #3D6B5A; }

.steps__item.is-active .steps__num,
.steps__item.is-done .steps__num {
  background: var(--edsy-primary);
  border-color: var(--edsy-primary);
  color: var(--edsy-on-primary);
}
.steps__item.is-active .steps__label,
.steps__item.is-done .steps__label { color: var(--edsy-primary); }
.steps__line.is-done { background: var(--edsy-primary); }

/* ---------- Fields ------------------------------------------------------- */

/* This page uses the muted border treatment from the live site rather than
   the lime borders used elsewhere. */
.auth__panel .field { margin-bottom: 0.875rem; }
.auth__panel .field > label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--edsy-text-secondary);
  margin-bottom: 0.3rem;
}
.auth__panel input[type='text'],
.auth__panel input[type='email'],
.auth__panel input[type='password'] {
  min-height: 40px;
  background: var(--edsy-surface);
  border: 1px solid #3D6B5A;
  border-radius: var(--edsy-radius);
  color: #fff;
}
.auth__panel input:hover { border-color: var(--edsy-primary); }
.auth__panel input:focus {
  border-color: var(--edsy-primary);
  box-shadow: 0 0 0 3px rgba(165, 201, 60, 0.18);
}
.auth__panel .help { font-size: 0.625rem; color: var(--edsy-text-subtle); }
.auth__panel .errorlist { color: #ff6b6b; font-size: 0.6875rem; }

.req { color: #ff4d4f; }

/* Gradient primary button, full width, as on the live page. */
.btn--gradient {
  width: 100%;
  min-height: 40px;
  background: linear-gradient(135deg, var(--edsy-primary) 0%, var(--edsy-primary-hover) 100%);
  color: var(--edsy-on-primary);
  border: 0;
  font-weight: 600;
}
.btn--gradient:hover { background: linear-gradient(135deg, var(--edsy-primary-light) 0%, var(--edsy-primary) 100%); }

.auth__foot {
  text-align: center;
  margin-top: 1rem;
  color: var(--edsy-text-subtle);
  font-size: 0.75rem;
}

/* ---------- Verify step -------------------------------------------------- */

.verify-note {
  background: rgba(165, 201, 60, 0.1);
  border: 1px solid rgba(165, 201, 60, 0.3);
  border-radius: var(--edsy-radius);
  padding: 0.875rem;
  margin-bottom: 0.875rem;
  text-align: center;
}
.verify-note svg { width: 24px; height: 24px; color: var(--edsy-primary); }
.verify-note strong { display: block; color: #fff; font-size: 0.8125rem; margin: 0.25rem 0 0.15rem; }
.verify-note span { color: var(--edsy-text-muted); font-size: 0.6875rem; }
.verify-note b { color: var(--edsy-primary); }

.auth__panel input.code-input {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-indent: 0.5em;  /* keeps the digits visually centred despite tracking */
}
/* The wide tracking is for the digits, not the hint text. */
.auth__panel input.code-input::placeholder {
  letter-spacing: normal;
  text-indent: 0;
  font-size: 0.9375rem;
  font-weight: 400;
}

.auth__links { text-align: center; margin-top: 0.65rem; }
.auth__links form { display: inline; }
.auth__links button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.6875rem;
  color: var(--edsy-primary);
  cursor: pointer;
}
.auth__links button[disabled] { color: var(--edsy-text-subtle); cursor: not-allowed; }
.auth__links a { font-size: 0.6875rem; color: var(--edsy-text-muted); }

.auth .messages { margin: 0 0 1rem; }
.auth .messages li { font-size: 0.8125rem; padding: 0.6rem 0.8rem; }
