:root {
  --bg: #07101f;
  --panel: #0e1c30;
  --border: rgba(148, 163, 184, 0.17);
  --text: #f5f7fb;
  --soft: #aebbd0;
  --muted: #73829a;
  --primary: #8b7cf6;
  --green: #3dd598;
  --red: #ff6b7d;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 20%, rgba(139, 124, 246, 0.14), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(64, 215, 207, 0.08), transparent 32%),
    var(--bg);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid #40d7cf;
  outline-offset: 3px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.login-story {
  min-height: 100vh;
  padding: 52px clamp(38px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.login-story::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: 46%;
  bottom: -360px;
  border: 1px solid rgba(139, 124, 246, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(139, 124, 246, 0.035),
    0 0 0 160px rgba(64, 215, 207, 0.018);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(139, 124, 246, 0.3);
  border-radius: 14px;
  background: rgba(139, 124, 246, 0.1);
}

.brand-mark img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.brand-lockup span,
.brand-lockup strong {
  display: block;
}

.brand-lockup div > span,
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.brand-lockup strong {
  margin-top: 4px;
  font-size: 15px;
}

.story-copy {
  max-width: 690px;
  position: relative;
  z-index: 1;
}

.story-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.story-copy p {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.75;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  position: relative;
  z-index: 1;
}

.trust-grid div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-grid strong {
  color: var(--soft);
  font-size: 10px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 213, 152, 0.09);
}

.login-panel {
  min-height: 100vh;
  padding: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 34, 57, 0.96), rgba(11, 24, 42, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.login-card h2 {
  margin: 10px 0 0;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.login-card > p {
  margin: 13px 0 28px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.65;
}

.google-button {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  border: 0;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.google-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.google-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.google-button svg {
  width: 19px;
  height: 19px;
}

.google-button.loading svg {
  animation: pulse 900ms ease-in-out infinite alternate;
}

@keyframes pulse {
  to { transform: scale(0.82); opacity: 0.55; }
}

.login-status {
  min-height: 39px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.login-status[data-tone="success"] {
  color: #83e8bd;
}

.login-status[data-tone="error"] {
  color: #ff9eaa;
}

.security-note {
  margin-top: 10px;
  padding: 13px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.security-note > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #83e8bd;
  font-size: 10px;
  border-radius: 50%;
  background: rgba(61, 213, 152, 0.09);
}

.security-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.login-footer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding: 28px 24px 36px;
    gap: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .story-copy h1 {
    max-width: 650px;
    font-size: clamp(38px, 10vw, 60px);
  }

  .trust-grid {
    display: none;
  }

  .login-panel {
    min-height: auto;
    padding: 38px 20px 54px;
  }
}

@media (max-width: 520px) {
  .login-story {
    gap: 44px;
  }

  .story-copy p {
    font-size: 13px;
  }

  .login-card {
    padding: 28px 22px;
  }
}

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