:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --red: #d70015;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(700px 500px at 50% -12%, rgba(0, 113, 227, 0.08), transparent 65%),
    var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
}

.unlock-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.unlock-card {
  width: min(410px, 100%);
  padding: 38px 34px 30px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 30px 80px -35px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  color: var(--blue);
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 113, 227, 0.08);
}

.brand svg {
  width: 46px;
  height: 46px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 9px 0 10px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.intro {
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.field {
  display: block;
  text-align: left;
}

.field span {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  background: #f5f5f7;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input:focus {
  border-color: rgba(0, 113, 227, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.unlock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 14px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  touch-action: manipulation;
}

.unlock-button:hover {
  background: var(--blue-hover);
}

.unlock-button:active {
  transform: scale(0.99);
}

.unlock-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.error {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  border-radius: 10px;
  background: rgba(215, 0, 21, 0.07);
}

.error[hidden] {
  display: none;
}

.privacy {
  margin: 24px 0 0;
  color: #86868b;
  font-size: 10.5px;
  line-height: 1.5;
}

.foot {
  margin: 22px 0 0;
  color: #86868b;
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.unlock-card.shake {
  animation: shake 360ms ease;
}

@media (max-width: 460px) {
  .unlock-shell {
    justify-content: center;
    padding: calc(20px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  }

  .unlock-card {
    margin-top: 0;
    padding: 34px 24px 26px;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 18px 50px -30px rgba(0, 0, 0, 0.25);
  }

  h1 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html,
body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.field + .field {
  margin-top: 14px;
}

.brand-heart {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-heart {
  filter: hue-rotate(27deg) saturate(0.4) brightness(1.7) contrast(0.92);
  opacity: 0.94;
}
