/* RoadPilot login — standalone (no mobility-shell / app-shell conflicts) */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body.rh-auth-split-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0c0e12;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* Full-width split layout */
body.rh-auth-split-page .rh-auth-page {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff;
  flex-direction: unset !important;
  overflow: visible !important;
}

/* LEFT — description panel */
body.rh-auth-split-page .rh-auth-aside {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(155deg, #080808 0%, #1a2332 55%, #0f172a 100%);
  color: #fff;
  min-height: 100%;
  min-height: 100dvh;
  overflow-y: auto;
}

body.rh-auth-split-page .rh-auth-aside-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.rh-auth-split-page .rh-auth-aside-brand {
  display: inline-flex;
  text-decoration: none;
}

body.rh-auth-split-page .rh-auth-aside-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .35rem .7rem;
  margin-bottom: .85rem;
}

body.rh-auth-split-page .rh-auth-aside h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.12;
  margin: 0 0 .85rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

body.rh-auth-split-page .rh-auth-aside-body > p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.74);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 36ch;
}

body.rh-auth-split-page .rh-auth-aside-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  line-height: 1.6;
}

body.rh-auth-split-page .rh-auth-aside-demo {
  margin-top: auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .8rem;
  line-height: 1.5;
}

body.rh-auth-split-page .rh-auth-aside-demo strong {
  display: block;
  margin-bottom: .4rem;
  font-size: .82rem;
  color: #fff;
}

body.rh-auth-split-page .rh-auth-aside-demo p {
  margin: .25rem 0;
  color: rgba(255,255,255,.8);
}

body.rh-auth-split-page .rh-auth-aside-demo code {
  background: rgba(0,0,0,.35);
  padding: .12rem .4rem;
  border-radius: 5px;
  font-size: .76rem;
  word-break: break-all;
}

body.rh-auth-split-page .rh-auth-aside-link {
  color: rgba(255,255,255,.5);
  font-size: .84rem;
  text-decoration: none;
}

body.rh-auth-split-page .rh-auth-aside-link:hover { color: #fff; }

/* RIGHT — login form */
body.rh-auth-split-page .rh-auth-main {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #fff;
  min-height: 100%;
  overflow-y: auto;
  flex: unset !important;
}

body.rh-auth-split-page .rh-auth-main-inner {
  width: 100%;
  max-width: 400px;
}

body.rh-auth-split-page .rh-auth-role-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: 1.35rem;
  padding: .35rem;
  background: #f0f2f5;
  border-radius: 12px;
}

body.rh-auth-split-page .rh-auth-role-nav a {
  display: block;
  text-align: center;
  padding: .6rem .5rem;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 700;
  color: #666;
  text-decoration: none;
}

body.rh-auth-split-page .rh-auth-role-nav a.is-on {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

body.rh-auth-split-page .rh-auth-main-head h1 {
  margin: 0 0 .4rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

body.rh-auth-split-page .rh-auth-main-head p {
  margin: 0 0 1.15rem;
  color: #666;
  font-size: .9rem;
  line-height: 1.45;
}

body.rh-auth-split-page .rh-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

body.rh-auth-split-page .rh-auth-tabs a {
  display: block;
  text-align: center;
  padding: .55rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid #e0e0e0;
  color: #555;
  text-decoration: none;
}

body.rh-auth-split-page .rh-auth-tabs a.is-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

body.rh-vendor.rh-auth-split-page .rh-auth-tabs a.is-on {
  background: #0d9488;
  border-color: #0d9488;
}

body.rh-auth-split-page .rh-auth-form {
  display: grid;
  gap: .85rem;
}

body.rh-auth-split-page .rh-label {
  font-size: .8rem;
  font-weight: 700;
  color: #333;
}

body.rh-auth-split-page .rh-input {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #d4d4d4;
  border-radius: 11px;
  font-size: 16px;
  background: #fff;
  color: #111;
}

body.rh-auth-split-page .rh-input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

body.rh-auth-split-page .rh-btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

body.rh-auth-split-page .rh-btn-ink {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}

body.rh-vendor.rh-auth-split-page .rh-btn-ink {
  background: #0d9488;
}

body.rh-auth-split-page .rh-btn-ink:hover {
  filter: brightness(1.08);
}

body.rh-auth-split-page .rh-alert {
  padding: .75rem .9rem;
  border-radius: 10px;
  font-size: .86rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

body.rh-auth-split-page .rh-alert-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

body.rh-auth-split-page .rh-alert-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

body.rh-auth-split-page .rh-auth-help {
  margin: .85rem 0 0;
  font-size: .84rem;
  color: #666;
  text-align: center;
}

body.rh-auth-split-page .rh-auth-help a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

body.rh-vendor.rh-auth-split-page .rh-auth-help a {
  color: #0d9488;
}

body.rh-auth-split-page .rh-auth-main-foot {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .74rem;
  color: #aaa;
}

body.rh-auth-split-page .rh-auth-main-foot a {
  color: #888;
  text-decoration: none;
}

/* App mode — same full split, optional phone frame on large desktop */
body.rh-auth-split-page.rh-native-app {
  background: #0c0e12;
}

@media (min-width: 960px) {
  body.rh-auth-split-page.rh-native-app {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
  }
  body.rh-auth-split-page.rh-native-app .rh-auth-page {
    max-width: 1100px !important;
    width: 100% !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0,0,0,.5);
    min-height: min(760px, calc(100dvh - 2rem)) !important;
    max-height: calc(100dvh - 2rem);
  }
}

/* Mobile — stack: description top, form bottom (still one page) */
@media (max-width: 768px) {
  body.rh-auth-split-page .rh-auth-page {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
  }
  body.rh-auth-split-page .rh-auth-aside {
    min-height: auto;
  }
  body.rh-auth-split-page .rh-auth-aside-list {
    margin-bottom: .5rem;
  }
  body.rh-auth-split-page .rh-auth-main {
    align-items: flex-start;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}
