/* The sign-in and account pages (templates/allauth/layouts/base.html), in the look (looks.css, loaded first). These
   pages don't know the player yet, so look.js draws them in this browser's last look, or Night Arcade. The pages a
   visitor signs in or up on (entrance.html) are dressed up at the end. The front page loads this too. */
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;  /* the footer (footer.css) rests at the bottom */
  background: var(--bg-art), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: var(--text-weight) var(--text-size)/1.5 var(--font-body);
}
/* a look's photograph, if it has one (as style.css) */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg-photo, none); }
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  backdrop-filter: var(--header-blur);
}
.brand { font: var(--display-weight) 1.375rem var(--font-display); color: var(--text); text-decoration: none; }
[data-look="arcade"] .brand { background: linear-gradient(90deg, #67e8f9, #a855f7 55%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-look="club"] .brand, [data-look="pop"] .brand, [data-look="quiet"] .brand { color: var(--accent); }
.brand .mark { vertical-align: -4px; margin-right: 8px; border-radius: 5px; }
.who { margin-left: auto; color: var(--muted); font-size: 0.875rem; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.card {
  width: 100%;  /* the body is a column, so the card needs its width said */
  max-width: 27.5rem;
  margin: 56px auto;
  padding: 28px 28px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow), 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: var(--card-blur);
}
@media (max-width: 480px) { .card { width: auto; margin: 20px 16px; padding: 22px 18px; } }  /* the margins inside the screen, not beside a full-width card */
h1 { margin: 0 0 8px; font: var(--display-weight) 1.75rem/1.15 var(--font-display); }
h2 { margin: 16px 0 8px; font: var(--display-weight) 1.125rem var(--font-display); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
form p { display: flex; flex-direction: column; gap: 4px; }
label { color: var(--muted); font-size: 0.875rem; }
input[type="email"], input[type="text"], input[type="password"] {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--ctl-line);
  border-bottom-width: var(--ctl-depth);
  border-radius: var(--ctl-radius);
  background: var(--ctl-bg);
  color: var(--text);
}
input:focus-visible, .button:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button, button {
  display: inline-block;
  font: inherit;
  font-weight: var(--ctl-weight);
  padding: 9px 16px;
  margin: 4px 6px 4px 0;
  border: 1px solid var(--ctl-line);
  border-bottom-width: var(--ctl-depth);
  border-radius: var(--ctl-radius);
  background: var(--ctl-bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.button:hover, button:hover { border-color: var(--accent); box-shadow: var(--ctl-hover); }
.button:active, button:active { transform: translateY(1px); }
.button.prominent, button[type="submit"]:not(.link):not(.outline):not(.provider) {
  background: var(--primary-bg);
  border: 1px solid var(--primary-line);
  border-bottom-width: var(--primary-depth);
  color: var(--primary-fg);
  box-shadow: var(--primary-shadow);
  font-weight: 800;
}
.button.link { border: 0; background: none; box-shadow: none; color: var(--accent); padding-left: 0; text-decoration: underline; }
.providers { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
/* a button for another site (allauth/elements/provider.html) posts its own small form, so one click goes to the site.
   Where a visitor signs in it carries the site's logo: sitebtn.css */
.providers .button { display: block; width: 100%; margin: 0; text-align: center; }
.errorlist, .messages { margin: 0 0 12px; padding: 0; list-style: none; }
.errorlist li { color: var(--loss); font-size: 0.875rem; }
.messages li { padding: 8px 10px; border-radius: var(--ctl-radius); background: var(--ctl-bg); border: 1px solid var(--line); }
ul { padding-left: 20px; }
.bad { color: var(--loss); }
/* ---------- the pages a visitor signs in or up on (entrance.html) ----------
   The card under the app's mark, its words centred and its main button full width. On a wide screen a drill plays
   itself beside it (demo.html, demo.css) on the look's own board, and both rise into place (.motion: auth.js). */
.entry { width: 100%; }
.show { display: none; }
.entrance .card { position: relative; padding-top: 30px; }
.entrance .card::before {  /* a hairline of the look's light round the card, where the look glows (Night Arcade) */
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, var(--accent), transparent 32%, transparent 68%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: calc(0.8 * var(--glow));
}
.crest {
  display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--card-line), 0 0 calc(38px * var(--glow)) color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.entrance .card h1 { font-size: 2rem; text-align: center; text-wrap: balance; }
[data-look="arcade"] .entrance .card h1 { width: fit-content; margin-left: auto; margin-right: auto; }  /* its gradient runs the words' width */
.entrance .card h1 + p { margin: 0 0 20px; text-align: center; text-wrap: balance; color: color-mix(in srgb, var(--text) 82%, transparent); }
.entrance .card input[type="email"], .entrance .card input[type="text"] { padding: 12px 14px; font-size: 1.0625rem; }
.entrance .card input[name="code"] { text-align: center; font-size: 1.375rem; letter-spacing: 0.18em; }  /* the code from the email */
.entrance .card input:focus-visible { outline-offset: 0; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.entrance .card form button[type="submit"]:not(.provider) { position: relative; overflow: hidden; width: 100%; margin: 6px 0 0; padding: 12px 16px; font-size: 1.0625rem; }
.entrance .card form button[type="submit"]:not(.provider)::after {  /* a gleam across the button under the pointer, where the look glows */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); opacity: var(--glow);
}
.motion .entrance .card form button[type="submit"]:not(.provider):hover::after { left: 120%; transition: left 0.6s ease; }
.entrance .card > .muted:last-child { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.motion .entrance .card { animation: arrive 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.motion .entrance .show { animation: arrive 0.8s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
@media (min-width: 1000px) and (min-height: 640px) {
  .entrance .entry {
    flex: 1; display: grid; grid-template-columns: minmax(0, 27.5rem) minmax(0, 640px); justify-content: center; align-items: center;
    gap: 104px; padding: 40px 64px 56px;
  }
  .entrance .card { margin: 0; }
  .entrance .show { display: block; padding: 64px 0 56px; }  /* room for the drill's moments above and under the board */
  /* the board grows with the window, and a short window gets a smaller one */
  .entrance .demo { margin: 0 auto; width: min(100%, 640px, max(320px, 100vh - 360px)); container-type: inline-size; }
  @container (max-width: 470px) { .entrance .dchip.streak { display: none; } }  /* a small board has room for one moment under it */
}
