:root {
  --ink: #101828;
  --muted: #667085;
  --line: #dfe6ef;
  --blue: #2f6bed;
  --blue-dark: #2458c8;
  --soft-blue: #eef4ff;
  --danger: #c73232;
  --success: #157f57;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Avenir Next", "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(510px, 42%) 1fr;
  min-height: 100vh;
}
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 40px 64px 28px;
  background: #fff;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: 154px;
}
.auth-brand img { display: block; width: 100%; height: auto; }
.auth-card {
  width: min(100%, 410px);
  margin: auto;
  padding: 34px 36px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(16, 24, 40, .08);
}
.auth-heading { margin-bottom: 26px; }
.auth-heading p {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}
.auth-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.045em;
}
.auth-heading > span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}
.google-auth-area { min-height: 44px; }
.google-button-shell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  border-radius: 8px;
  color: #667085;
  font-size: 13px;
}
.google-button-shell > div,
.google-button-shell iframe { max-width: 100% !important; }
.google-button-shell.is-loading { opacity: .58; pointer-events: none; }
.google-setup-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6dae1;
  border-radius: 8px;
  color: #667085;
  background: #fff;
  font-weight: 700;
}
.google-status {
  min-height: 0;
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.google-status:empty { display: none; }
.google-status.success { color: var(--success); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 21px 0;
  color: #98a2b3;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7ebf0;
}
.auth-divider span { white-space: nowrap; }
.field-group { display: grid; gap: 9px; margin-bottom: 17px; }
.field-group label {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-label-row a { color: var(--blue); font-size: 12px; font-weight: 700; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #f9fbfd;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder { color: #98a2b3; }
input:focus {
  border-color: rgba(47, 107, 237, .72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 237, .11);
}
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  padding: 6px 7px;
  border: 0;
  color: #667085;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.terms-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin: 3px 0 16px;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}
.terms-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.terms-check a { color: var(--blue); font-weight: 750; }
.selected-plan {
  margin: -8px 0 20px;
  padding: 12px 14px;
  border: 1px solid #cfe0ff;
  border-radius: 11px;
  color: #1d4ed8;
  background: var(--soft-blue);
  font-size: 13px;
  font-weight: 750;
}
.form-status {
  min-height: 20px;
  margin: -2px 0 8px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}
.form-status.success { color: var(--success); }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(47, 107, 237, .22);
  cursor: pointer;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.auth-submit:hover { transform: translateY(-1px); background: var(--blue-dark); box-shadow: 0 16px 32px rgba(47, 107, 237, .28); }
.auth-submit:disabled { transform: none; opacity: .62; cursor: wait; }
.auth-switch {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid #edf0f4;
  color: #667085;
  text-align: center;
  font-size: 13px;
}
.auth-switch a { color: var(--blue); font-weight: 850; }
.auth-footnote {
  margin: 22px auto 0;
  max-width: 410px;
  color: #98a2b3;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.auth-footnote a { color: #667085; text-decoration: underline; text-underline-offset: 3px; }

.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 48%, rgba(181, 162, 255, .84), transparent 28rem),
    radial-gradient(circle at 72% 22%, rgba(93, 186, 255, .78), transparent 31rem),
    linear-gradient(135deg, #235ee9 0%, #326be9 42%, #35b6ef 100%);
}
.auth-visual-content {
  width: min(600px, calc(100% - 100px));
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 28px;
  background: rgba(20, 55, 148, .16);
  box-shadow: 0 30px 80px rgba(10, 40, 110, .18);
  backdrop-filter: blur(10px);
}
.visual-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.auth-visual h2 {
  margin: 28px 0 18px;
  color: #fff;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.auth-visual-content > p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.8;
}
.visual-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.visual-steps div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
}
.visual-steps b { display: block; margin-bottom: 26px; color: rgba(255, 255, 255, .68); font-size: 12px; }
.visual-steps span { font-size: 14px; font-weight: 750; line-height: 1.55; }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel { min-height: 100vh; padding: 32px; }
  .auth-visual { display: none; }
}

@media (max-width: 520px) {
  .auth-panel { padding: 22px 18px 20px; }
  .auth-card { margin: 48px auto auto; padding: 28px 22px 24px; border-radius: 17px; box-shadow: 0 18px 46px rgba(16, 24, 40, .08); }
  .auth-heading h1 { font-size: 27px; }
  .auth-footnote { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
