:root { font-family: 'Nunito', sans-serif; color: #123c5a; font-synthesis: none; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #9cdef5;
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #087a9d; outline-offset: 2px; }
.legal input:focus-visible { outline: 2px solid #087a9d; outline-offset: 1px; }

.auth-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 42%);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-page:has(.auth-cloud) { overflow: hidden; }
.auth-bottom {
  position: absolute;
  bottom: 0;
  z-index: 4;
  width: auto;
  max-width: 52%;
  height: clamp(120px, 28vh, 240px);
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
}
.auth-bottom-left { left: 0; }
.auth-bottom-right { right: 0; }
.auth-page:has(.auth-bottom) .auth-panel {
  padding-bottom: clamp(72px, 14vh, 130px);
}
.auth-cloud {
  position: absolute;
  z-index: 0;
  width: auto;
  height: auto;
  pointer-events: none;
}
.auth-cloud-a { top: 6%; right: -10%; width: min(42%, 220px); }
.auth-cloud-b { top: 38%; left: -12%; width: min(28%, 140px); }
.auth-cloud-c { bottom: 16%; right: 4%; width: min(36%, 190px); }

.auth-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #9cdef5 url('marketing-assets/login-art.png') center 58% / cover no-repeat;
}
.auth-art a.brand {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 3.2vh, 36px);
  left: clamp(18px, 3.4vw, 42px);
  display: flex;
  align-items: center;
}
.auth-art .brand-logo { display: block; height: clamp(42px, 5.4vh, 58px); width: auto; }
.auth-art-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: clamp(92px, 16vh, 168px) clamp(22px, 5vw, 72px) 0;
  text-align: center;
}
.auth-art-copy h1 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: #002b43;
  text-wrap: balance;
}
.auth-art-copy p {
  margin: 12px auto 0;
  max-width: 420px;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  color: #173f60;
}

.auth-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -56px;
  padding: 28px 42px clamp(88px, 16vh, 140px) 32px;
  border-radius: 64px 0 0 64px;
  background: #fffefd;
  box-shadow: -18px 0 40px rgb(16 84 115 / 0.08);
  overflow: hidden;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, clamp(400px, 36vw, 560px));
  padding: 4px 8px;
}
.auth-card h2 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(34px, 6.2vh, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #123b5b;
}
.auth-lead {
  margin: clamp(4px, 1vh, 10px) 0 0;
  font-size: clamp(16px, 2.4vh, 22px);
  font-weight: 800;
  color: #173f60;
  line-height: 1.2;
}
.auth-sub {
  margin: clamp(4px, 0.8vh, 8px) 0 0;
  max-width: 28em;
  font-size: clamp(13px, 1.7vh, 15px);
  font-weight: 600;
  line-height: 1.4;
  color: #4d6f86;
}

.auth-form { display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); margin-top: clamp(10px, 2vh, 20px); }
.field { display: flex; flex-direction: column; gap: clamp(3px, 0.6vh, 6px); }
.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.field-head.end { justify-content: flex-end; margin-top: -2px; }
.toggle-visibility .eye-off { display: none; }
.toggle-visibility[aria-pressed="true"] .eye-on { display: none; }
.toggle-visibility[aria-pressed="true"] .eye-off { display: block; }
.field label { font-size: 14px; font-weight: 800; color: #173f60; }
.forgot {
  border: 0;
  padding: 0;
  background: none;
  color: #1aa7c2;
  font-size: 13px;
  font-weight: 800;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: clamp(40px, 5.6vh, 52px);
  padding: 0 16px;
  border: 1.5px solid #d7e4ec;
  border-radius: 100px;
  background: #fff;
}
.input-wrap:focus-within { border-color: #34bdd0; }
.input-wrap svg { flex: 0 0 auto; color: #7f9aab; }
.input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: clamp(8px, 1.2vh, 12px) 0;
  background: transparent;
  color: #123c5a;
  caret-color: #123c5a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  user-select: text;
}
.input-wrap input::placeholder { color: #9bb3c2; font-weight: 600; }
.toggle-visibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7f9aab;
}
.toggle-visibility:hover { color: #173f60; }

.legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #4d6f86;
}
.legal input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #34bdd0;
}
.legal a { color: #1aa7c2; text-decoration: underline; text-underline-offset: 2px; }

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(42px, 5.6vh, 52px);
  margin-top: 4px;
  border-radius: 100px;
  background: #34bdd0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgb(16 84 115 / 0.16); }

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  color: #8aa3b4;
  font-size: 14px;
  font-weight: 800;
}
.divider::before, .divider::after { content: ''; height: 1px; background: #e3edf3; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: clamp(40px, 5.2vh, 48px);
  border: 1.5px solid #d7e4ec;
  border-radius: 100px;
  background: #fff;
  color: #173f60;
  font-size: 15px;
  font-weight: 800;
}
.social-btn:hover { border-color: #b9d0dc; }
.social-btn svg { width: 18px; height: 18px; }

.switch {
  margin: clamp(4px, 0.8vh, 8px) 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #4d6f86;
}
.switch a { color: #1aa7c2; font-weight: 800; }

.auth-tagline {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 18px;
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  color: #7ecfe0;
  text-align: right;
}

.note {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
}
.note-1 { top: 7%; right: 11%; color: #f0c44a; font-size: 28px; transform: rotate(12deg); }
.note-2 { top: 18%; right: 6%; color: #34bdd0; font-size: 18px; transform: rotate(-8deg); }
.note-3 { top: 36%; left: 6%; color: #f28cb0; font-size: 20px; transform: rotate(-18deg); }
.note-4 { bottom: 22%; right: 8%; color: #34bdd0; font-size: 26px; transform: rotate(16deg); }
.note-5 { bottom: 14%; right: 16%; color: #f0c44a; font-size: 16px; }

.auth-form.is-signup { gap: clamp(4px, 0.9vh, 8px); margin-top: clamp(8px, 1.4vh, 12px); }
.auth-form.is-signup .primary-btn { margin-top: 2px; min-height: clamp(40px, 5.2vh, 48px); }
.auth-page:has(.is-signup) .auth-lead { font-size: clamp(15px, 2.1vh, 18px); }
.auth-page:has(.is-signup) .auth-card h2 { font-size: clamp(30px, 5.2vh, 46px); }
.auth-page:has(.is-signup) .input-wrap { min-height: clamp(38px, 5vh, 46px); }
.auth-page:has(.is-signup) .social-btn { min-height: clamp(38px, 4.8vh, 44px); }

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { min-height: 22vh; background-position: center 42%; }
  .auth-art-copy, .note { display: none; }
  .auth-panel {
    margin-left: 0;
    margin-top: -28px;
    padding: 28px 18px clamp(80px, 14vh, 120px);
    border-radius: 36px 36px 0 0;
    min-height: 78vh;
  }
  .auth-bottom { height: clamp(72px, 14vh, 110px); }
  .auth-cloud-a { width: 200px; right: -8%; bottom: 8%; top: auto; }
  .auth-cloud-b { width: 92px; top: 3%; right: 4%; left: auto; }
  .auth-cloud-c { width: 136px; top: 30%; left: 0; }
  .auth-card { padding: 0 4px; width: min(100%, 440px); }
}

@media (max-width: 640px) {
  .auth-art .brand-logo { height: 40px; }
  .auth-lead { font-size: 16px; }
  .auth-card h2 { font-size: clamp(30px, 5vh, 40px); }
}

@media (max-height: 760px) {
  .auth-sub { display: none; }
  .auth-tagline { display: none; }
}

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