/*
 * Sign in, sign up and the other signed-out pages: the website's look around
 * the app's own forms. The forms, fields and buttons keep app.css; this only
 * adds the frame - a panel with the moving colour band beside the card on wide
 * screens, a slim band above it on phones - and the website's lettering for
 * the headings. Loaded by _auth.html after app.css.
 */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/web/InterTight-latin.f5af7a761c2b.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/web/InterTight-peso.1cfaf57744ed.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+20B1;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/web/InterTight-latin-ext.496654ac82a3.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B0, U+20B2-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The colour panel and the form sit side by side as one pair, centred on the
   screen, however wide the screen is. */
.auth-split {
  position: relative; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 440px);
  justify-content: center; align-content: center; gap: 20px; min-height: 100vh; padding: 56px 24px;
}
.auth-split .auth-wrap { min-height: 0; padding: 0; justify-content: center; }
.auth-split .auth-card { max-width: none; }
.auth-card h1 { font-family: "Inter Tight", "InterVariable", sans-serif; font-weight: 400; letter-spacing: -.025em; }

/* The panel: navy, with the colour band flowing down it, like the website's top. */
.auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 36px 40px; border-radius: 20px; background: #061b31; color: #c3cfe6; font-family: "Inter Tight", "InterVariable", sans-serif;
}
.auth-side .brand { color: #fff; margin: 0; position: relative; z-index: 1; text-decoration: none; }
.auth-side-copy { position: relative; z-index: 1; max-width: 26rem; }
.auth-side-title { font-family: inherit; font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; color: #fff; margin: 0 0 1.4rem; }
.auth-side-title span { background: linear-gradient(90deg, #a99bff, #ff8ad0 55%, #ffb36a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: 1rem; }
.auth-side li { padding-left: 1.6rem; position: relative; }
.auth-side li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid #a99bff; border-bottom: 2px solid #a99bff; transform: rotate(-45deg);
}
/* A navy veil over the lower part of the band, so the words below never sit
   on bright colour. */
.auth-side::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 27, 49, 0) 30%, rgba(6, 27, 49, .88) 58%, #061b31 78%);
}
.auth-side-foot { position: relative; z-index: 1; font-size: .88rem; color: #93a3c2; }
.auth-side-foot a { color: #c3cfe6; }

.auth-band {
  position: absolute; z-index: 0; top: -30%; right: -10%; width: 70%; height: 170%; pointer-events: none;
  border-radius: 48% 52% 46% 54% / 50%; overflow: hidden; opacity: .75;
  animation: auth-sway 18s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.auth-band i {
  position: absolute; left: 0; right: 0; top: -100%; height: 200%;
  background: linear-gradient(180deg,
    #9fc3ff 0%, #a98bff 8%, #ff7ad1 17%, #ff8a3d 26%, #ffb24a 32%, #ff6aa8 40%, #b98cff 46%, #9fc3ff 50%,
    #a98bff 58%, #ff7ad1 67%, #ff8a3d 76%, #ffb24a 82%, #ff6aa8 90%, #b98cff 96%, #9fc3ff 100%);
  animation: auth-flow 16s linear infinite;
}
@keyframes auth-sway { from { transform: rotate(20deg); } to { transform: rotate(28deg) translateX(-6%) scaleX(1.1); } }
@keyframes auth-flow { to { transform: translateY(50%); } }

/* The card side keeps the app's background, light or dark. */
.auth-split .auth-top { position: absolute; top: 1rem; right: 1rem; }
.auth-split .auth-main { display: flex; flex-direction: column; justify-content: center; }
/* The light/dark switch sits in the page's corner, clear of the card. */
.auth-split .auth-main { position: static; }

/* Shown in the panel on wide screens; inside the card on phones. */
.auth-split .auth-card .auth-reassure { display: none; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 440px); padding: 68px 16px 40px; align-content: start; }
  .auth-side::after { display: none; }
  .auth-side { min-height: 0; padding: 18px 20px; border-radius: 14px; }
  .auth-side-copy, .auth-side-foot { display: none; }
  .auth-band { top: -120%; right: -20%; width: 70%; height: 340%; }
  .auth-split .auth-card .auth-reassure { display: grid; }
}

@media (prefers-reduced-motion: reduce) { .auth-band, .auth-band i { animation: none; } }
