:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #171717;
  background: #f5f5f4;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.1), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(15, 23, 42, 0.08), transparent 34%),
    #f5f5f4;
}

.auth-shell {
  width: min(100%, 440px);
}

.card {
  padding: 36px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #171717;
  color: white;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
}

.eyebrow {
  margin: 0 0 3px;
  color: #737373;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.primary-link,
.secondary-button {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.primary-link {
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  text-decoration: none;
}

.secondary-button {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #262626;
  cursor: pointer;
}

.primary-link:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-link:hover {
  background: #262626;
}

.secondary-button:hover {
  border-color: #a3a3a3;
  background: #fafafa;
}

.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lede {
  margin: 0;
  color: #525252;
  font-size: 15px;
  line-height: 1.55;
}

.google-button {
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
}

.google-button,
.google-button * {
  cursor: pointer;
}

.error {
  margin-top: 16px;
  color: #b00020;
  font-size: 13px;
  line-height: 1.45;
}

.success {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: 14px;
  line-height: 1.45;
}

.muted {
  margin: 0;
  color: #737373;
  font-size: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 28px 22px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-link,
  .secondary-button {
    transition: none;
  }
}
