:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e8f0;
  --blue: #5271ff;
  --purple: #764fea;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    linear-gradient(90deg, rgba(82,113,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(82,113,255,0.08) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 18px;
}
.auth-panel {
  width: min(436px, 100%);
}
.auth-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  color: var(--ink);
  text-decoration: none;
  font-size: 32px;
  font-weight: 950;
}
.auth-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--blue);
}
.auth-mark::before {
  content: "";
  width: 21px;
  height: 21px;
  border: 6px solid #fff;
  border-radius: 50%;
}
.auth-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb84d;
}
h1 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.2;
}
.mode-label {
  margin: 0 0 28px;
  color: #344054;
  font-weight: 750;
}
.google-button,
.auth-form button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 5px;
  font-weight: 900;
}
.google-button {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #111827;
}
.google-g {
  color: #4285f4;
  font-size: 22px;
  font-weight: 950;
}
.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 22px 40px;
  color: #667085;
  font-size: 14px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #d9dee8;
}
.auth-form {
  display: grid;
  gap: 17px;
}
.auth-form label {
  display: grid;
  gap: 10px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 850;
}
.required {
  color: #ef4444;
}
.auth-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  padding: 0 14px;
  outline: 0;
}
.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(82,113,255,0.12);
}
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #475467;
  font-size: 14px;
}
.check {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.check input {
  width: 18px;
  height: 18px;
}
.form-row a,
.switch-mode a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 850;
}
.auth-form button {
  border: 0;
  background: var(--purple);
  color: #fff;
}
.auth-form button:disabled,
.google-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.switch-mode {
  margin: 28px 0;
  text-align: center;
  color: #475467;
  font-size: 14px;
}
.auth-note {
  min-height: 20px;
  margin: 10px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.auth-note[data-tone="warning"] {
  color: #9a6700;
}
.auth-note[data-tone="error"] {
  color: #b42318;
}
.auth-note[data-tone="success"] {
  color: #067647;
}
.auth-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  color: #111827;
}
.auth-footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 520px) {
  .auth-brand {
    margin-bottom: 30px;
    font-size: 26px;
  }
  h1 {
    font-size: 28px;
  }
  .divider {
    margin-inline: 14px;
  }
}
