/* dogAdvisor Max Series 5: Preregistration sign-in page, edition 2 (27 October 2026) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body.si { min-height: 100vh; min-height: 100dvh; background: #000D09; color: #FFFFFF; font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

.si-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(27px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
.si-brand { margin: 1px 0 0; font-size: 17px; line-height: 30px; font-weight: 500; white-space: nowrap; color: #FFFFFF; }
.si-brand span { font-weight: 400; color: #9B9B9B; }
.si-pills { display: flex; gap: 10px; flex: 0 0 auto; }
.si-pill { -webkit-appearance: none; appearance: none; height: 40px; margin: 0; padding: 0 19px; border: 1px solid rgba(255,255,255,0.07); border-radius: 30px; background: #010504; color: #D9D9D9; font: inherit; font-size: 14.5px; line-height: 38px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.si-pill:hover { color: #FFFFFF; border-color: rgba(255,255,255,0.16); }

.si-main { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 23vh 20px 40px; }
.si-h { margin: 0; font-size: 36px; line-height: 44px; font-weight: 400; letter-spacing: -0.01em; color: #FFFFFF; }
.si-msg { margin: 21px 0 0; max-width: 340px; min-height: 52px; font-size: 14px; line-height: 26px; font-weight: 400; color: #FFFFFF; }
.si-msg.is-err { color: #F2271F; }
.si-msg b { font-weight: 700; }
.si-msg a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.si-form { display: flex; flex-direction: column; align-items: center; margin: 32px 0 0; }
.si-in { display: block; height: 48px; margin: 0; padding: 0 21px; max-width: calc(100vw - 40px); border: 1px solid rgba(255,255,255,0.09); border-radius: 30px; background: #010504; color: #FFFFFF; font: inherit; font-size: 17px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.si-in::placeholder { color: #8C8C8C; -webkit-text-fill-color: #8C8C8C; opacity: 1; }
.si-in:focus { border-color: rgba(255,255,255,0.28); }
.si-in:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }
.si-in:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #010504 inset; -webkit-text-fill-color: #FFFFFF; caret-color: #FFFFFF; }
.si-in-u { width: 219px; }
.si-in-c { width: 316px; }
@supports (field-sizing: content) {
  .si-in-u { field-sizing: content; width: auto; min-width: 219px; }
}

/* the security code: the typed characters are hidden and drawn as our own dots */
.si-pw { position: relative; margin-top: 11px; max-width: calc(100vw - 40px); }
.si-pw .si-in-c { color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; letter-spacing: 0; }
.si-pw .si-in-c:-webkit-autofill { -webkit-text-fill-color: transparent; caret-color: transparent; }
.si-dots { position: absolute; top: 0; bottom: 0; left: 22px; right: 22px; display: flex; align-items: center; gap: 7px; overflow: hidden; pointer-events: none; }
.si-dots.is-full { justify-content: flex-end; }
.si-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #F2F2F2; box-shadow: 0 0 0 0 rgba(254,132,95,0); transition: background-color 0.45s ease, box-shadow 0.45s ease, transform 0.18s ease, opacity 0.18s ease; animation: si-pop 0.34s cubic-bezier(.2,1.5,.4,1) both; }
.si-dot.is-new { background: #FE845F; box-shadow: 0 0 10px 2px rgba(254,132,95,0.55); }
.si-dot.is-gone { animation: none; transform: scale(0); opacity: 0; }
.si-caret { flex: 0 0 auto; width: 1.5px; height: 20px; margin-left: -2px; border-radius: 1px; background: #FFFFFF; opacity: 0; }
.si-dots.has-dots .si-caret { margin-left: 0; }
.si-dots.is-focus .si-caret { animation: si-blink 1.05s steps(1) infinite; }
.si-dots.is-shake { animation: si-shake 0.4s ease; }
@keyframes si-pop { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes si-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes si-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.si-btn { -webkit-appearance: none; appearance: none; height: 48px; margin: 27px 0 0; padding: 0 21px; border: 1px solid rgba(255,255,255,0.09); border-radius: 30px; background: #010504; color: #FFFFFF; font: inherit; font-size: 17px; cursor: pointer; transition: border-color 0.2s ease, opacity 0.2s ease; }
.si-btn:hover { border-color: rgba(255,255,255,0.25); }
.si-btn:disabled { opacity: 0.6; cursor: default; }
.si-btn:focus-visible, .si-pill:focus-visible { outline: 1px solid rgba(255,255,255,0.6); outline-offset: 3px; }

/* the night scene along the bottom */
.si-scene { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }
.si-scene canvas { display: block; width: 100%; height: 0; opacity: 0; transition: opacity 0.9s ease; }
.si-scene canvas.is-on { opacity: 1; }

@media (max-width: 640px) {
  .si-top { padding-top: calc(18px + env(safe-area-inset-top)); }
  .si-brand { font-size: 16px; line-height: 36px; margin-top: 0; }
  .si-pills { gap: 8px; }
  .si-pill { height: 36px; padding: 0 15px; font-size: 13.5px; line-height: 34px; }
  .si-main { padding-top: calc(19vh + env(safe-area-inset-top)); }
  .si-h { font-size: 28px; line-height: 36px; }
  .si-msg { margin-top: 16px; max-width: 320px; font-size: 13.5px; line-height: 24px; min-height: 48px; }
  .si-form { margin-top: 24px; }
}
@media (max-width: 360px) {
  .si-brand { font-size: 14.5px; }
  .si-pill { padding: 0 12px; }
}
@media (max-height: 620px) {
  .si-main { padding-top: 13vh; }
}
@media (prefers-reduced-motion: reduce) {
  .si-dot, .si-dots, .si-dots.is-focus .si-caret { animation: none !important; transition: none !important; }
  .si-dots.is-focus .si-caret { opacity: 1; }
}

/* edition 3 (27 October 2026): text sits in the middle of both boxes, and the security code dots stay white */
.si-in { text-align: center; }
.si-dots { justify-content: center; }
.si-dots.is-full { justify-content: flex-end; }
.si-dot.is-new { background: #F2F2F2; box-shadow: none; }
