/* Sign-in: "Big flare" (chosen 2026-10-12). Colours, type, buttons and fields come from
   ../shared/portal.css; this file only builds the panel and places things. */

body { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--body); }
.si { min-height: 100vh; min-height: 100dvh; padding: 12px; box-sizing: border-box; display: grid; }

/* The panel: Signal Orange, a wide bright flare rising from the bottom, fine white dots, and soft 4px
   pixels that fade in toward the bottom. */
.panel {
  position: relative; overflow: hidden; border-radius: 16px; color: #fff;
  display: grid; grid-template-rows: auto 1fr; padding: 28px 32px;
  background:
    radial-gradient(ellipse 95% 70% at 50% 115%, rgba(255, 246, 220, 1), rgba(255, 190, 110, .55) 40%, transparent 75%),
    radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.2px) 0 0 / 7px 7px,
    #FF560D;
}
.panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(softpixel.png) 0 0 / 384px 384px; image-rendering: pixelated; mix-blend-mode: soft-light; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 100%); mask-image: linear-gradient(180deg, transparent 35%, #000 100%);
}
.panel > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 10px; font: 500 18px var(--body); letter-spacing: -.01em; color: #fff; }
.brand img { border-radius: 7px; }
.mid { align-self: center; justify-self: center; width: 100%; max-width: 440px; text-align: center; }
.greet { font: 400 64px/1.02 var(--display); letter-spacing: -.01em; color: #fff; margin: 0 0 32px; white-space: nowrap; }

.card { background: var(--surface); color: var(--t1); border-radius: 14px; padding: 24px; text-align: left; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35); }
.card label { display: block; font-size: 16px; font-weight: 500; line-height: 20px; margin: 0 0 8px; }
.card .field { width: 100%; box-sizing: border-box; margin: 0; }
.card .btn.lg { width: 100%; margin-top: 12px; }
.si-err { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--fill4); font-size: 16px; line-height: 24px; }
.sent-to { margin: 0 0 20px; font-size: 18px; line-height: 28px; color: var(--t2); }
.sent-to b { color: var(--t1); font-weight: 500; }
.si-dev { width: 100%; margin-bottom: 12px; }
/* Sent step: the resend button spans the card like the email step's button, its countdown digits are
   fixed-width so it never changes size, and "Use a different email" sits centred below it. */
.si-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.si-row .btn { width: 100%; margin-top: 0; font-variant-numeric: tabular-nums; }
.si-row .link-btn { align-self: center; }
.si-note { font-size: 16px; color: var(--t2); margin: 14px 0 0; }


@media (max-width: 820px) {
  .panel { padding: 22px 20px; }
  .greet { font-size: 40px; white-space: normal; }
}

/* "hidden" must win over button styles (.btn sets display: inline-flex, which beat the browser's own
   hidden rule and showed an empty "Dev only" button). */
[hidden] { display: none !important; }
