:root {
  --navy: #0f172a;
  --teal: #14b8a6;
  --blue: #2563eb;
  --orange: #f97316;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 10%, rgba(20, 184, 166, 0.18), transparent 28rem),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.16), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  min-height: 100vh;
}

.auth-brand-panel {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.auth-brand-card {
  width: min(680px, 100%);
  min-height: 720px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 14%, rgba(20, 184, 166, 0.34), transparent 18rem),
    radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.3), transparent 24rem),
    linear-gradient(135deg, var(--navy), #172554);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 1.25rem;
  font-weight: 1000;
  box-shadow: 0 18px 38px rgba(20, 184, 166, 0.28);
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: #fff;
  font-size: 1.05rem;
}

.auth-brand small {
  max-width: 440px;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.35;
}

.auth-hero-copy {
  margin-top: clamp(4rem, 10vw, 8rem);
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #99f6e4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.auth-hero-copy p {
  max-width: 600px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.04rem;
  line-height: 1.7;
}

.auth-preview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-preview-map {
  position: relative;
  overflow: hidden;
  height: 130px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 32%, rgba(20, 184, 166, 0.3), transparent 3rem),
    radial-gradient(circle at 75% 68%, rgba(37, 99, 235, 0.32), transparent 4rem),
    rgba(255, 255, 255, 0.1);
}

.auth-preview-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.auth-pin {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--orange);
}

.pin-one {
  left: 22%;
  top: 34%;
  background: var(--success);
}

.pin-two {
  left: 56%;
  top: 48%;
  background: var(--blue);
}

.pin-three {
  left: 74%;
  top: 24%;
  background: var(--orange);
}

.auth-preview-card strong,
.auth-preview-card small {
  display: block;
}

.auth-preview-card strong {
  color: #fff;
  font-size: 0.98rem;
}

.auth-preview-card small {
  margin-top: 0.32rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.auth-benefit-grid div {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-benefit-grid strong,
.auth-benefit-grid span {
  display: block;
}

.auth-benefit-grid strong {
  color: #fff;
  font-size: 1.35rem;
}

.auth-benefit-grid span {
  margin-top: 0.24rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.auth-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(520px, 100%);
  margin: 0 auto 1rem;
}

.auth-back-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.auth-back-link:hover {
  color: var(--navy);
}

.auth-language-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.auth-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 1000;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.auth-status {
  margin: 1rem 0 0;
  padding: 0.82rem 0.9rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 800;
}

.auth-status.info {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.auth-status.warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.13);
}

.auth-status.error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
}

.auth-status.success {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
}

.auth-form {
  display: none;
  gap: 1rem;
  padding: 1.2rem 0.35rem 0.35rem;
}

.auth-form.is-active {
  display: grid;
}

.auth-form-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.auth-form-header p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field span {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 950;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.88rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input:focus {
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.auth-submit {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
  font-weight: 1000;
  cursor: pointer;
}

.auth-link-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-small-note,
.auth-footer-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.auth-footer-note {
  width: min(520px, 100%);
  margin: 1rem auto 0;
}

.auth-footer-note a {
  color: var(--blue);
  font-weight: 850;
}

@media (max-width: 980px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand-card {
    min-height: auto;
  }

  .auth-hero-copy {
    margin-top: 3rem;
  }

  .auth-form-panel {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .auth-brand-panel,
  .auth-form-panel {
    padding: 0.7rem;
  }

  .auth-brand-card,
  .auth-card {
    border-radius: 24px;
  }

  .auth-preview-card {
    grid-template-columns: 1fr;
  }

  .auth-benefit-grid {
    grid-template-columns: 1fr;
  }
}
