@font-face {
  font-family: Inter;
  src: url('/login/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #24242d;
  background: #f5f5f8;
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 48px);
  background:
    radial-gradient(ellipse at 28% 18%, #ece8fa 0%, transparent 52%),
    radial-gradient(ellipse at 83% 85%, #e8f3f0 0%, transparent 47%),
    #f5f5f8;
}

.sign-in {
  width: min(100%, 430px);
  padding: clamp(26px, 7vw, 40px);
  background: #fff;
  border: 1px solid #e2e1eb;
  border-radius: 20px;
  box-shadow: 0 4px 12px #25213608, 0 20px 60px #30254d13;
  animation: appear 720ms cubic-bezier(.16, 1, .3, 1) both;
}

.brand { display: block; width: 148px; height: auto; margin-bottom: 30px; }
h1 { margin: 0; font-size: clamp(24px, 5vw, 30px); line-height: 1.2; letter-spacing: -.045em; font-weight: 720; }
p { margin: 10px 0 26px; color: #5d6275; font-size: .94rem; }

.google-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #d9d8e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 4px #2221320d;
  color: #26242e;
  text-decoration: none;
  font-weight: 620;
  font-size: .95rem;
  transition: border-color 350ms ease, box-shadow 450ms ease, transform 300ms ease;
}

.google-button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transform: scale(1.2) translateX(-22%);
  background: radial-gradient(ellipse at 25% 100%, #dcd0fb, #f2edfa 57%, #fff 100%);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(.16, 1, .3, 1);
}

.google-button:is(:hover, :focus-visible) { border-color: #c5b6e9; box-shadow: 0 3px 9px #42326519; }
.google-button:is(:hover, :focus-visible)::before { opacity: 1; transform: scale(1.05) translateX(0); }
.google-button:active { transform: translateY(1px); }
.google-button:focus-visible { outline: 2px solid #7462aa; outline-offset: 4px; }

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sign-in { animation: none; }
  .google-button, .google-button::before { transition: none; }
}
