:root {
  --ink: #071846;
  --muted: #647083;
  --line: #dfe6ee;
  --paper: #f8fbfc;
  --soft: #f2f7f8;
  --mint: #dff7ee;
  --lavender: #ece7ff;
  --peach: #ffe9df;
  --sky: #e4f3ff;
  --primary: #18b8b5;
  --primary-dark: #071846;
  --primary-soft: #e8f8f7;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(7, 24, 70, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: #f6fafb;
}

.auth-visual {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  width: fit-content;
}

.auth-card .brand {
  justify-content: center;
  width: 100%;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-weight: 400;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.visual-copy {
  max-width: 620px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  padding: 8px 11px;
  border: 1px solid rgba(106, 140, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.mini-form {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(230, 232, 238, .95);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mini-form h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 400;
}

.mini-form p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.mini-field {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.mini-field label {
  font-size: 12px;
  font-weight: 400;
}

.mini-input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.mini-button {
  display: grid;
  place-items: center;
  height: 44px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 400;
}

.auth-panel {
  width: min(460px, 100%);
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(7, 24, 70, .08);
  opacity: 1;
  transition: opacity .14s ease;
}

.auth-card.is-entering {
  opacity: 0;
}

.auth-card.is-leaving {
  opacity: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.auth-card h2 {
  margin: 0 0 9px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

.caption {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.trial-info {
  display: grid;
  gap: 4px;
  margin: -6px 0 20px;
  padding: 12px 13px;
  border: 1px solid #ccefed;
  border-radius: 10px;
  background: var(--primary-soft);
}

.trial-info strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.trial-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.free-label {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 400;
}

.field-help {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.select-input {
  width: 100%;
  min-height: 52px;
  padding: 5px 44px 5px 16px;
  border: 1px solid rgba(24, 184, 181, .38);
  border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 50%, #6b7280 50%) right 20px center / 7px 7px no-repeat,
    linear-gradient(135deg, #6b7280 50%, transparent 50%) right 14px center / 7px 7px no-repeat,
    #fbfcff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.5;
  appearance: none;
}

.plan-note {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.select-input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(24, 184, 181, .16);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft);
}

.auth-tab {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.auth-tab.active {
  border-color: rgba(24, 184, 181, .22);
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(7, 24, 70, .05);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 13px;
  font-weight: 400;
}

.plan-row label {
  font-weight: 400;
}

.text-input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field .text-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7b8494;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f2f5fb;
  color: var(--ink);
  outline: none;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.text-input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(24, 184, 181, .16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--primary-dark);
  border-radius: 10px;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(7, 24, 70, .12);
  cursor: pointer;
}

.auth-message {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid #c9d7f1;
  border-radius: 6px;
  background: #f5f8ff;
  color: #263b5f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.auth-message[data-type="success"] {
  border-color: #b9dfcc;
  background: #f3fbf6;
  color: #16633a;
}

.auth-message[data-type="error"] {
  border-color: #f1b9b9;
  background: #fff6f6;
  color: #9b1c1c;
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
  box-shadow: none;
}

.google-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
}


.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 0;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 400;
}

.notice {
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.notice a,
.legal-links a {
  color: var(--primary-dark);
  font-weight: 400;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 860px) {
  .auth-panel {
    width: 100%;
  }

  .auth-card {
    padding: 24px;
  }
}
