/* Login, denied and error pages: one quiet frame. Foundations live in base.css. */

.auth {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100dvh;
  padding: 48px var(--gutter);
  overflow: hidden;
}

/* The big outlined word drifting behind everything. Decorative only. */
.ghost {
  position: fixed; inset: 0; z-index: 0;
  display: grid; align-items: center;
  overflow: hidden; pointer-events: none; user-select: none;
}
.ghost span {
  display: block;
  margin-top: -3vh;
  font: italic 400 clamp(240px, 50vw, 760px)/1 var(--serif);
  letter-spacing: -.045em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklab, var(--ink) 10%, transparent);
  white-space: nowrap;
  animation: drift 80s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-8vw); }
  to   { transform: translateX(4vw); }
}

.corner {
  position: fixed; left: var(--gutter); top: 22px; z-index: 2;
}

.panel {
  position: relative; z-index: 1;
  display: grid; justify-items: center;
  width: min(420px, 100%);
  text-align: center;
  animation: rise .9s var(--ease) backwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* A little shelf, echoing the dashboard meter. */
.minis {
  display: flex; align-items: flex-end; gap: 7px;
  height: 56px; padding: 0 16px; margin-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.minis::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 100%; height: 14px;
  background: radial-gradient(ellipse 50% 100% at 50% 0, var(--shadow-c), transparent 72%);
  opacity: .5;
}
.minis i {
  display: block; width: 15px; border-radius: 5px 5px 1px 1px;
  background: light-dark(oklch(.84 .06 var(--h)), oklch(.4 .06 var(--h)));
  box-shadow: inset 0 0 0 1px light-dark(oklch(.3 .05 var(--h) / .12), oklch(1 0 0 / .08));
}
.minis i:nth-child(1) { --h: 28;  height: 38px; }
.minis i:nth-child(2) { --h: 84;  height: 50px; }
.minis i:nth-child(3) { --h: 150; height: 32px; }
.minis i:nth-child(4) { --h: 205; height: 46px; }
.minis i:nth-child(5) { --h: 60;  height: 40px; }
.minis.is-empty i {
  background: transparent; box-shadow: none;
  border: 1.5px dashed var(--line-strong); border-bottom: 0;
}
.minis.is-tilted i:nth-child(3) {
  transform: rotate(16deg); transform-origin: 100% 100%; margin-left: 10px;
}

.brand {
  font: italic 400 clamp(72px, 16vw, 104px)/.9 var(--serif);
  letter-spacing: -.035em;
}
.tagline { margin-top: 18px; font-size: 16px; color: var(--ink-2); }

.headline {
  margin-top: 4px;
  font-size: clamp(24px, 5.4vw, 30px); font-weight: 650; line-height: 1.35; letter-spacing: -.03em;
  text-wrap: balance;
}
.lead { margin-top: 14px; color: var(--ink-2); text-wrap: balance; }

.account {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 8px 8px 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-size: 13px; color: var(--muted);
}
.account b {
  padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font: 500 13px/1.4 var(--mono); letter-spacing: 0; word-break: break-all;
}

.reason {
  margin-top: 22px; padding: 14px 16px; border-radius: 12px; text-align: left;
  background: color-mix(in oklab, var(--danger) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--danger) 32%, transparent);
  font-size: 14px; line-height: 1.6; color: var(--ink); width: 100%;
  overflow-wrap: anywhere;
}

.cta { margin-top: 34px; }
.cta .btn svg { width: 20px; height: 20px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 639px) {
  .cta, .cta .btn { width: 100%; }
  .ghost span { -webkit-text-stroke-color: color-mix(in oklab, var(--ink) 7%, transparent); }
}
