/* Student login: builds on the tokens and buttons in styles.css */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100svh; background: var(--cream); }

/* ---------- Sanctuary panel ---------- */
.auth__aside {
  position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--gold-3);
  display: flex; flex-direction: column; padding: 36px 48px;
  background: radial-gradient(ellipse 80% 60% at 60% 35%, rgba(110, 44, 94, .95), transparent 70%), radial-gradient(ellipse 60% 50% at 0% 100%, rgba(194, 111, 125, .35), transparent 70%), var(--night);
}
.auth__mandala { position: absolute; width: 140%; left: -20%; top: 50%; color: var(--gold); opacity: .16; animation: authSpin 140s linear infinite; }
@keyframes authSpin { from { transform: translateY(-50%) rotate(0); } to { transform: translateY(-50%) rotate(360deg); } }
.auth__brand { position: relative; z-index: 1; color: var(--gold-3); }
.auth__aside-body { position: relative; z-index: 1; margin: auto 0; display: grid; justify-items: center; text-align: center; gap: 18px; padding: 30px 0; }
.auth__portrait { width: min(240px, 46%); aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(201, 161, 90, .5), 0 0 0 10px rgba(201, 161, 90, .06); background: linear-gradient(170deg, #B0798E, var(--plum)); animation: authRise 1.4s var(--ease) both .1s; }
.auth__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.auth__mantra { font-family: var(--deva); color: var(--gold); margin: 6px 0 0; font-size: 1.05rem; animation: authRise 1.2s var(--ease) both .3s; }
.auth__quote { margin: 0; padding: 0; border: 0; font-family: var(--serif); font-weight: 300; font-style: normal; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.12; color: var(--ivory); max-width: 440px; animation: authRise 1.2s var(--ease) both .4s; }
.auth__quote em { color: var(--gold-2); }
.auth__inside { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation: authRise 1.2s var(--ease) both .55s; }
.auth__inside li { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(246, 235, 211, .2); background: rgba(255, 252, 247, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.auth__inside span { color: var(--gold); }

/* ---------- Login panel ---------- */
.auth__main { position: relative; display: flex; flex-direction: column; padding: 32px clamp(24px, 6vw, 90px); }
.auth__back { align-self: flex-end; font-size: .86rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; transition: color .3s, gap .4s var(--ease); }
.auth__back:hover { color: var(--plum); gap: 12px; }
.auth__card { width: min(480px, 100%); margin: auto; padding: 40px 0; animation: authRise 1.1s var(--ease) both .2s; }
.auth__card h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; color: var(--night-2); line-height: 1.04; }
.auth__lead { color: var(--muted); font-size: 1.04rem; margin: 16px 0 30px; }
.auth__primary { width: 100%; justify-content: space-between; padding: 20px 30px; }

.auth__steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; counter-reset: s; }
.auth__steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; padding: 10px 0; font-size: .92rem; color: var(--muted); position: relative; }
.auth__steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 40px; height: calc(100% - 28px); width: 1px; background: linear-gradient(var(--gold), transparent); }
.auth__steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; font-weight: 600; font-variant-numeric: lining-nums; color: var(--plum); border: 1px solid var(--gold); background: var(--ivory); }
.auth__steps strong { color: var(--night-2); }

.auth__divider { display: flex; align-items: center; gap: 16px; margin: 26px 0 18px; color: var(--muted); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth__alt { display: grid; gap: 12px; }
.auth__option { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--ivory); transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.auth__option:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.auth__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--plum); }
.auth__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth__option b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--night-2); line-height: 1.2; }
.auth__option small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.auth__option i { font-style: normal; color: var(--plum); transition: transform .4s var(--ease); }
.auth__option:hover i { transform: translate(3px, -3px); }

.auth__help { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.auth__help h2 { font-size: 1.5rem; color: var(--night-2); margin-bottom: 8px; }
.auth__help details { border-bottom: 1px solid var(--line); }
.auth__help details:first-of-type { border-top: 0; }
.auth__help summary { font-family: var(--sans); font-size: .93rem; font-weight: 600; padding: 14px 40px 14px 0; color: var(--ink); }
.auth__help summary:hover { padding-left: 0; }
.auth__help summary::after { width: 24px; height: 24px; margin-top: -12px; background-size: 9px 1px, 1px 9px; }
.auth__help details p { font-size: .88rem; color: var(--muted); padding: 0 0 16px; margin: 0; }
.auth__wa { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: #1E8E4E; padding: 10px 18px; border-radius: 999px; background: rgba(37, 211, 102, .1); transition: background .3s; }
.auth__wa:hover { background: rgba(37, 211, 102, .2); }
.auth__wa svg { width: 18px; fill: #25D366; }

.auth__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); }
.auth__foot p { margin: 0; }
.auth__foot a { color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth__secure { display: inline-flex; align-items: center; gap: 8px; }
.auth__secure svg { width: 14px; fill: none; stroke: var(--gold); stroke-width: 1.8; }

@keyframes authRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { position: relative; height: auto; padding: 22px 20px 34px; border-radius: 0 0 32px 32px; }
  .auth__aside-body { padding: 26px 0 0; gap: 12px; }
  .auth__portrait { width: 120px; }
  .auth__quote { font-size: 1.7rem; }
  .auth__inside { display: none; }
  .auth__main { padding: 18px 20px 28px; }
  .auth__back { display: none; }
  .auth__card { padding: 20px 0 30px; }
}
@media (max-width: 640px) {
  .auth { padding-bottom: 0; }
  body.auth { padding-bottom: 0; }
  .auth__primary { padding: 18px 24px; }
  .auth__foot { flex-direction: column; }
}
