/* ============================================================
   Vihan TravelOS — authentication & installation
   ============================================================ */
.auth-body {
  background: #f5f3ee;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr);
  min-height: 100vh;
}
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 30px 34px;
  overflow: hidden;
  color: #fbf6ea;
  background: #0b2a22;
}
.auth-art-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(.82);
}
.auth-art-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(11, 42, 34, .05) 0%, rgba(11, 42, 34, .75) 60%, #0b2a22 100%),
    linear-gradient(180deg, rgba(6, 28, 22, .82) 0%, rgba(8, 32, 25, .34) 42%, rgba(6, 28, 22, .94) 100%);
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='300' viewBox='0 0 500 300'%3E%3Cg fill='none' stroke='%23e6cf9d' stroke-opacity='.25' stroke-width='.6'%3E%3Cpath d='M-60 230C60 140 150 280 250 195S420 60 560 150'/%3E%3Cpath d='M-60 250C60 160 150 300 250 215S420 80 560 170'/%3E%3Cpath d='M-60 270C60 180 150 320 250 235S420 100 560 190'/%3E%3Ccircle cx='85' cy='60' r='90'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 760px;
  pointer-events: none;
}
.auth-art-top, .auth-art-copy, .auth-art-foot { position: relative; z-index: 2; }
.auth-art-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #f7f2e5; }
.auth-brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 7px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
  flex: none;
}
.auth-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.auth-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.auth-brand-copy strong { font-family: var(--font-display); font-size: 25px; font-weight: 400; letter-spacing: .05em; }
.auth-brand-copy small { margin-top: 4px; font-size: 8px; letter-spacing: .22em; color: rgba(244, 238, 223, .5); font-weight: 700; }
.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
  color: rgba(249, 244, 231, .7);
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.auth-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #76d6aa;
  box-shadow: 0 0 0 3px rgba(118, 214, 170, .12);
}
.auth-art-copy { max-width: 560px; padding: 5vh 0 7vh 1vw; }
.auth-art-copy .eyebrow { color: #e5c27f; margin-bottom: 14px; }
.auth-art-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.02em;
  color: #fbf6e9;
  margin: 0;
}
.auth-art-copy h1 em { font-style: italic; color: #e8c47d; }
.auth-art-copy p {
  max-width: 430px;
  margin-top: 18px;
  color: rgba(248, 243, 231, .62);
  font-size: 12.5px;
  line-height: 1.7;
}
.auth-art-stats { display: flex; align-items: flex-start; gap: 32px; margin-top: 28px; }
.auth-art-stats div { display: flex; flex-direction: column; }
.auth-art-stats strong { font-size: 20px; font-weight: 750; color: #f2d79c; letter-spacing: -.02em; }
.auth-art-stats span { margin-top: 2px; font-size: 7.5px; letter-spacing: .09em; text-transform: uppercase; color: rgba(248, 243, 231, .4); }
.auth-art-meta { display: flex; gap: 16px; margin-top: 21px; font-size: 9px; color: rgba(248, 243, 231, .53); }
.auth-art-meta span + span::before { content: "·"; margin-right: 16px; color: rgba(248, 243, 231, .3); }
.auth-art-foot { font-size: 8.5px; color: rgba(248, 243, 231, .36); letter-spacing: .01em; }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(90% 70% at 100% 0%, #fff 0%, transparent 55%),
    #fbfaf6;
  padding: 34px;
  min-height: 100vh;
}
.auth-panel-inner { width: min(410px, 100%); }
.auth-mobile-brand { display: none; margin-bottom: 26px; }
.auth-mobile-brand img { width: 178px; height: auto; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.auth-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #eac57e;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 10px 22px -14px rgba(11, 42, 34, .7);
  flex: none;
}
.auth-icon.success { background: var(--green-soft); color: var(--green); border: 1px solid #cfe7db; }
.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  font-weight: 700;
}
.auth-secure::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-mid); }
.auth-panel h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--ink);
}
.auth-lead { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: 8px; }
.auth-lead code, .auth-note code { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: .92em; }
.auth-alert {
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.5;
  border: 1px solid var(--line);
}
.auth-alert strong { display: block; font-weight: 750; margin-bottom: 2px; font-size: 10.5px; }
.auth-alert.error { background: var(--red-soft); border-color: #f1d4cf; color: #9f3f34; }
.auth-alert.success { background: var(--green-soft); border-color: #d3e9df; color: #226a50; }
.auth-alert ul { margin: 4px 0 0; padding-left: 16px; list-style: disc; }
.auth-alert li { margin-top: 2px; }
.auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span:first-child {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--ink);
  transition: .16s;
}
.auth-field input::placeholder { color: #aab3ac; }
.auth-field input:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(47, 148, 115, .11); }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 52px; }
.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 750;
}
.auth-eye:hover { color: var(--ink); }
.auth-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9.5px; color: var(--muted); }
.auth-form-meta a { color: var(--green); font-weight: 700; }
.auth-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-check input { accent-color: var(--green); width: 13px; height: 13px; }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  color: #fbf7ec;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 12px 24px -16px rgba(11, 42, 34, .7);
  transition: .16s;
}
.auth-submit:hover { background: var(--forest-2); transform: translateY(-1px); }
.auth-submit span { font-size: 16px; color: var(--gold); }
.auth-submit.as-link { margin-top: 20px; }
.auth-note { margin-top: 14px; font-size: 8.5px; color: var(--faint); line-height: 1.6; }
.auth-support {
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: 9px;
  color: var(--faint);
}
.auth-support span { width: 100%; }
.auth-support strong { color: var(--ink-soft); font-weight: 700; }
.auth-support a { color: var(--muted); font-weight: 650; }
.auth-support a:hover { color: var(--green); }
.auth-panel-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 21px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.5;
  color: var(--faint);
}
.install-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 16px;
}
.install-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 6px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}
.install-check span { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 800; flex: none; }
.install-check.ok span { background: var(--green-soft); color: var(--green); }
.install-check.bad span { background: var(--red-soft); color: var(--red); }
.install-check.bad { border-color: #f0d4cf; }
@media (max-width: 1050px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr); }
  .auth-art { padding: 26px; }
  .auth-art-copy h1 { font-size: 48px; }
  .auth-art-stats { gap: 20px; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; padding: 26px 22px; align-items: flex-start; }
  .auth-panel-inner { margin: 4vh auto 0; }
  .auth-mobile-brand { display: block; }
  .auth-panel h2 { font-size: 35px; }
  .auth-panel-footer { flex-direction: column; gap: 3px; }
}
@media (max-width: 460px) {
  .auth-field-row { grid-template-columns: 1fr; }
  .install-checklist { grid-template-columns: 1fr; }
  .auth-panel { padding: 20px 16px; }
  .auth-panel h2 { font-size: 32px; }
}
