/* ============================================================================
   AALB Academy: the sign-in screens (sign in, create account, set password).
   Layout and controls only. The tokens, the self-hosted fonts and the reset
   all come from /css/academy.css, which each of these pages loads first, so
   the door to the academy looks like the academy behind it.
   ============================================================================ */

:root{ --paper:#faf7f0; }

/* ── Two panels: the brand on the left, the form on the right ───────────── */
.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);background:var(--paper);}

.auth-aside{position:relative;display:flex;flex-direction:column;overflow:hidden;
  padding:44px 46px;background:var(--side-bg);color:#dff1ef;}
/* one gold hairline where the two panels meet, and a soft teal bloom behind
   the wordmark so the panel is not a flat block of colour */
.auth-aside::after{content:"";position:absolute;top:0;right:0;bottom:0;width:3px;background:var(--foil);}
.auth-aside::before{content:"";position:absolute;top:-140px;left:-120px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(26,138,130,.34),transparent 68%);pointer-events:none;}

.auth-brand{position:relative;display:flex;align-items:center;gap:13px;}
.auth-brand .mark{width:44px;height:44px;flex:none;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(150deg,#0f5f59,#0a3d3d);border:1px solid rgba(232,207,148,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09);}
.auth-brand .mark svg{width:24px;height:24px;color:var(--gold-soft);}
.auth-brand .name{display:flex;flex-direction:column;line-height:1.1;}
.auth-brand .name b{font-family:var(--serif);font-weight:600;font-size:19px;color:#fff;letter-spacing:.2px;}
.auth-brand .name span{font-family:var(--mono);font-size:9px;letter-spacing:2.4px;text-transform:uppercase;
  color:var(--gold-soft);margin-top:4px;}

/* centred between the wordmark and the small print, rather than dropped to
   the bottom of a tall panel with a hole above it */
.auth-pitch{position:relative;margin:auto 0;padding:40px 0;}
.auth-pitch h2{font-family:var(--serif);font-weight:600;color:#fff;letter-spacing:-.5px;
  font-size:clamp(25px,2.9vw,37px);line-height:1.12;}
.auth-pitch p{margin-top:14px;font-size:15px;line-height:1.62;color:rgba(223,241,239,.8);max-width:38ch;}

.auth-points{list-style:none;display:grid;gap:14px;margin-top:30px;}
.auth-points li{display:flex;align-items:flex-start;gap:12px;font-size:14.5px;line-height:1.5;
  color:rgba(223,241,239,.86);}
.auth-points .tick{width:22px;height:22px;flex:none;margin-top:1px;border-radius:50%;display:grid;place-items:center;
  background:rgba(232,207,148,.13);border:1px solid rgba(232,207,148,.34);}
.auth-points .tick svg{width:12px;height:12px;color:var(--gold-soft);stroke-width:2.6;}

.auth-foot{position:relative;margin-top:0;font-family:var(--mono);font-size:10px;letter-spacing:1.5px;
  text-transform:uppercase;color:rgba(191,222,219,.46);}

/* the short line that replaces the pitch when the panel becomes a top band */
.auth-tag{display:none;}

/* ── The card ───────────────────────────────────────────────────────────── */
/* margin:auto rather than align-items:center: a card taller than the window
   would otherwise have its top cut off with no way to scroll up to it */
.auth-main{display:flex;padding:46px 34px;}
.auth-card{width:100%;max-width:452px;margin:auto;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-xl);box-shadow:var(--shadow-md);padding:36px 34px 32px;
  animation:authIn .48s cubic-bezier(.2,.7,.3,1) both;}
@keyframes authIn{from{opacity:0;transform:translateY(15px);}to{opacity:1;transform:none;}}

.auth-eyebrow{font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:2.2px;
  text-transform:uppercase;color:var(--gold-deep);}
.auth-card h1{font-size:clamp(25px,3vw,30px);margin:10px 0 7px;}
.auth-sub{color:var(--ink-mute);font-size:14px;line-height:1.55;margin-bottom:26px;}

/* ── Fields ─────────────────────────────────────────────────────────────── */
.field{margin-bottom:17px;}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:7px;}
.field .wrap{position:relative;}
.field input{width:100%;font-family:var(--sans);font-size:15px;color:var(--ink);background:#fff;
  border:1px solid var(--line-strong);border-radius:12px;padding:12px 14px;
  transition:border-color .15s,box-shadow .15s;}
.field input::placeholder{color:var(--ink-faint);}
.field input:hover{border-color:var(--teal-200);}
.field input:focus{outline:none;border-color:var(--teal-600);box-shadow:0 0 0 3px rgba(21,117,110,.15);}
.field input[type=password]{padding-right:46px;letter-spacing:.02em;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;}
@media (max-width:420px){ .field-row{grid-template-columns:1fr;} }

.reveal{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:0;background:none;
  color:var(--ink-mute);padding:8px;border-radius:9px;display:grid;place-items:center;line-height:0;}
.reveal:hover{color:var(--teal-700);background:var(--teal-50);}
.reveal svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;}

.label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.label-row a{font-size:12.5px;font-weight:600;color:var(--teal-700);white-space:nowrap;}
.label-row a:hover{color:var(--teal-600);text-decoration:underline;}

.hint{font-size:12.5px;color:var(--ink-mute);margin-top:7px;}
.hint.bad{color:#8f2f28;}

/* ── The one button ─────────────────────────────────────────────────────── */
.auth-submit{width:100%;margin-top:8px;border:0;border-radius:12px;padding:14px 18px;
  background:var(--gold);color:var(--teal-950);font-family:var(--sans);font-size:15px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34);
  transition:background .15s,box-shadow .15s,transform .1s;}
.auth-submit:hover{background:var(--gold-soft);box-shadow:0 6px 18px rgba(199,154,59,.26);}
.auth-submit:active{transform:translateY(1px);}
.auth-submit[disabled]{opacity:.6;cursor:not-allowed;box-shadow:none;}
.spin{width:17px;height:17px;flex:none;animation:authspin .8s linear infinite;}
@keyframes authspin{to{transform:rotate(360deg);}}

/* ── Messages ───────────────────────────────────────────────────────────── */
/* These panels are display:flex, which would beat the browser's own rule for
   the hidden attribute, so say it here and mean it. */
[hidden]{display:none !important;}
.note{display:flex;align-items:flex-start;gap:10px;border-radius:12px;padding:12px 14px;
  font-size:13.5px;line-height:1.5;margin-bottom:18px;}
.note svg{width:17px;height:17px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;}
.note.bad{background:var(--danger-bg);border:1px solid #f0cdc9;color:#8f2f28;}
.note.good{background:var(--ok-bg);border:1px solid #bfe6d3;color:#126b48;}
.note.info{background:var(--teal-50);border:1px solid var(--teal-100);color:var(--teal-800);}
.shake{animation:authshake .34s ease;}
@keyframes authshake{0%,100%{transform:translateX(0);}20%{transform:translateX(-6px);}
  45%{transform:translateX(5px);}70%{transform:translateX(-3px);}}

/* ── Password strength and requirements ─────────────────────────────────── */
.meter{margin-top:11px;}
.meter .track{height:5px;border-radius:99px;background:var(--line);overflow:hidden;}
.meter .bar{height:100%;width:0;border-radius:99px;background:var(--danger);
  transition:width .3s ease,background-color .3s ease;}
.meter .label{font-family:var(--mono);font-size:10px;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--ink-mute);margin-top:7px;min-height:13px;}

.reqs{list-style:none;display:grid;gap:7px;margin-top:14px;padding:14px 15px;
  background:var(--bg-soft);border:1px solid var(--line-soft);border-radius:12px;}
.reqs .reqs-h{font-size:12px;font-weight:600;color:var(--ink-soft);}
.reqs li{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--ink-mute);
  transition:color .18s;}
.reqs li .req-icon{width:17px;height:17px;flex:none;border-radius:50%;display:grid;place-items:center;
  font-size:10px;line-height:1;background:#fff;border:1px solid var(--line-strong);color:var(--ink-faint);
  transition:background .18s,border-color .18s,color .18s;}
.reqs li.met{color:var(--teal-700);}
.reqs li.met .req-icon{background:var(--ok-bg);border-color:#bfe6d3;color:var(--ok);}

/* ── Below the form ─────────────────────────────────────────────────────── */
.auth-alt{margin-top:24px;padding-top:19px;border-top:1px solid var(--line-soft);
  font-size:13.5px;color:var(--ink-mute);display:flex;align-items:center;justify-content:space-between;
  gap:14px;flex-wrap:wrap;}
.auth-alt a{color:var(--teal-700);font-weight:600;}
.auth-alt a:hover{color:var(--teal-600);text-decoration:underline;}
.auth-alt .quiet{font-family:var(--mono);font-size:10px;letter-spacing:1.3px;text-transform:uppercase;}
.auth-alt .quiet a{color:var(--ink-faint);font-weight:500;}
.auth-alt .quiet a:hover{color:var(--ink-mute);}

/* ── Phone: the panel becomes a band, the card gets the room ────────────── */
@media (max-width:960px){
  /* auto for the band, the rest for the card: without the explicit rows the
     grid stretches both and the teal band becomes a needlessly tall header */
  .auth{grid-template-columns:1fr;grid-template-rows:auto 1fr;}
  .auth-aside{flex-direction:row;align-items:center;gap:14px;padding:18px 20px;}
  .auth-aside::after{top:auto;left:0;right:0;bottom:0;width:auto;height:3px;}
  .auth-aside::before{top:-220px;left:-160px;}
  .auth-brand .mark{width:38px;height:38px;border-radius:11px;}
  .auth-brand .mark svg{width:21px;height:21px;}
  .auth-brand .name b{font-size:17px;}
  .auth-pitch,.auth-points,.auth-foot{display:none;}
  .auth-tag{display:block;margin-left:auto;text-align:right;font-family:var(--mono);font-size:9px;
    letter-spacing:1.5px;text-transform:uppercase;color:rgba(223,241,239,.62);}
  /* iOS Safari zooms the whole page in when a field smaller than 16px takes
     focus, which throws a phone user out of the layout on their first tap. */
  .field input{font-size:16px;}
  .auth-main{padding:30px 16px 44px;}
  .auth-card{padding:26px 21px 24px;border-radius:var(--r-lg);}
}
@media (max-width:380px){
  .auth-tag{display:none;}
}
