:root {
  --sky: #5bbceb;
  --sky-strong: #249dd3;
  --sky-soft: #eaf7fd;
  --navy: #10233b;
  --navy-deep: #091729;
  --text: #172033;
  --muted: #667085;
  --line: #dce5ee;
  --white: #fff;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #dff2fb; }
body {
  min-height: 100dvh;
  margin: 0;
  padding: 32px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, Geist, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.95) 0 4%, transparent 25%),
    radial-gradient(circle at 88% 8%, rgba(91,188,235,.38), transparent 31%),
    radial-gradient(circle at 82% 92%, rgba(36,157,211,.22), transparent 27%),
    linear-gradient(135deg, #f8fcff 0%, #e7f6fd 48%, #d9f0fa 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(1px);
}
body::before {
  width: min(40vw, 620px);
  aspect-ratio: 1;
  left: -14vw;
  bottom: -24vw;
  border: clamp(60px, 8vw, 120px) solid rgba(91,188,235,.13);
}
body::after {
  width: min(28vw, 430px);
  aspect-ratio: 1;
  right: -8vw;
  top: -13vw;
  border: clamp(44px, 6vw, 90px) solid rgba(255,255,255,.42);
}

button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(91,188,235,.32);
  outline-offset: 2px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  min-height: 604px;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 32px 90px rgba(16,35,59,.18), 0 2px 8px rgba(16,35,59,.06);
}

.login-art {
  position: relative;
  min-height: 604px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(91,188,235,.23), transparent 36%),
    linear-gradient(155deg, #173451 0%, var(--navy) 50%, var(--navy-deep) 100%);
}
.login-art::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -230px;
  bottom: -210px;
  border: 86px solid rgba(91,188,235,.09);
  border-radius: 50%;
}
.login-art::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 118px;
  right: -95px;
  border: 1px solid rgba(121,207,243,.17);
  border-radius: 50%;
}
.login-art-brand,
.login-art-copy,
.login-benefits { position: relative; z-index: 1; }
.login-art-brand { display: flex; align-items: center; gap: 13px; }
.login-art-brand img {
  width: 50px;
  height: 50px;
  padding: 6px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.1);
}
.login-art-brand span { display: grid; line-height: 1.25; }
.login-art-brand b { font-size: 15px; }
.login-art-brand small { margin-top: 3px; color: #aab9cb; font-size: 11px; }

.login-art-copy { margin: auto 0 30px; }
.eyebrow,
.kicker {
  display: block;
  margin: 0 0 9px;
  color: #79cff3;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.login-art h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(31px, 3vw, 39px);
  line-height: 1.07;
  letter-spacing: -.048em;
}
.login-art h1 em { color: #79cff3; font-style: normal; }
.login-art-copy > p {
  max-width: 340px;
  margin: 18px 0 0;
  color: #b8c5d6;
  font-size: 13px;
  line-height: 1.65;
}
.login-benefits { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.login-benefits li {
  min-height: 59px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
}
.login-benefits li > svg { flex: 0 0 20px; color: #79cff3; }
.login-benefits li span { display: grid; }
.login-benefits li b { color: #fff; font-size: 12px; font-weight: 650; }
.login-benefits li small { margin-top: 3px; color: #98a9bd; font-size: 10px; }
.sun,.rice { display: none; }

.login-panel {
  min-height: 604px;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,.98);
}
.login-panel-intro { margin-bottom: 30px; }
.login-panel .kicker { color: #147caf; }
.login-panel h2 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.muted {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
#login-form { display: grid; gap: 17px; }
#login-form label { color: #344054; font-size: 12px; font-weight: 650; }
#login-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid #d2dbe5;
  border-radius: 11px;
  background: #fafcff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16,24,40,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
#login-form input:not([type="hidden"]):focus {
  outline: 0;
  border-color: var(--sky-strong);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36,157,211,.12);
}
.button.primary {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  background: var(--sky-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(36,157,211,.22);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.button.primary:hover { background: #168fc5; box-shadow: 0 12px 26px rgba(36,157,211,.28); }
.button.primary:active { background: #0e83b8; }
.button.primary svg { width: 17px; height: 17px; }
.form-error { min-height: 18px; margin: -5px 0 0; color: var(--danger); font-size: 12px; }

.install-hero {
  width: 100%;
  min-height: 66px;
  margin: 25px 0 12px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 44px 1fr 38px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease;
}
.install-hero:hover { border-color: #b9e3f5; background: #fbfdff; }
.install-hero > img { width: 44px; height: 44px; border-radius: 10px; }
.install-hero > span { display: grid; }
.install-hero b { font-size: 13px; }
.install-hero small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.install-hero i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sky-soft);
  color: var(--sky-strong);
  font-style: normal;
}
.install-hero i svg { width: 18px; height: 18px; }
.login-panel > small { display: block; color: #8491a3; font-size: 10px; text-align: center; }

dialog {
  width: min(92vw, 520px);
  max-height: 86dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(16,35,59,.22);
}
dialog::backdrop { background: rgba(9,23,41,.56); backdrop-filter: blur(3px); }
.dialog-head { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 2px 0 0; font-size: 21px; }
.dialog-head .close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
#install-guide-content { padding: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 760px) {
  body { padding: 14px; align-items: start; }
  .login-shell { width: min(100%, 470px); min-height: 0; display: block; border-radius: 20px; }
  .login-art { min-height: 190px; padding: 23px; }
  .login-art-brand img { width: 44px; height: 44px; }
  .login-art-copy { margin: 32px 0 0; }
  .login-art h1 { font-size: 25px; }
  .login-art-copy > p,.login-benefits { display: none; }
  .login-panel { min-height: 0; padding: 28px 22px 25px; }
  .login-panel-intro { margin-bottom: 23px; }
  .login-panel h2 { font-size: 26px; }
  #login-form input:not([type="hidden"]) { font-size: 16px; }
}

@media (max-height: 720px) and (min-width: 761px) {
  body { padding-block: 18px; }
  .login-shell,.login-art,.login-panel { min-height: 560px; }
  .login-art,.login-panel { padding-block: 34px; }
  .login-benefits li { min-height: 52px; }
}

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