/* ==========================================================================
   Student Login / Register pages
   Built from the theme tokens so it inherits the site colour + type system.
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(212, 175, 55, 0.1), transparent 60%),
    var(--navy);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--ink);
}

.auth-hero {
  padding: 28px clamp(20px, 5vw, 48px) 0;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.auth-brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
  stroke-width: 2;
}

.auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 5vw, 56px) clamp(18px, 4vw, 32px) 64px;
}

.auth-card {
  width: 100%;
  max-width: 540px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.auth-card-head {
  margin-bottom: 26px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.auth-back .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  stroke-width: 2.2;
}
.auth-back:hover {
  color: var(--ink);
}
.auth-card-head h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.auth-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.55;
}
.auth-alert p {
  margin: 0;
}
.auth-alert p + p {
  margin-top: 6px;
}
.auth-alert-error {
  background: #fdf1f1;
  border: 1px solid #f0c9c9;
  color: #8c2f2f;
}
.auth-alert-success {
  background: #f0f8f2;
  border: 1px solid #c6e3ce;
  color: #1d6b33;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.auth-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.auth-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.auth-field .required {
  color: #8c2f2f;
}
.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="tel"],
.auth-field input[type="password"],
.auth-field select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1.5px solid rgba(12, 59, 46, 0.16);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  cursor: pointer;
}
.auth-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}
.auth-check a {
  color: var(--gold-dark);
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 16px;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.auth-actions .btn {
  width: 100%;
}
.auth-alt-link {
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot: invisible to people, reachable by bots. */
.auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    border-radius: 18px;
  }
}