/* Local Arabic fonts: full original glyph coverage, with swap for fast text rendering. */
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/tajawal/Tajawal-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/tajawal/Tajawal-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/tajawal/Tajawal-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --paper:#fff;
  --canvas:#f5f7fa;
  --ink:#14243b;
  --muted:#53647b;
  --line:#dce3ec;
  --accent:#f5b942;
  --soft:#edf1f6;
  --nav:#fff;
  --error-surface:#fff5f5;
  --error-border:#f0c8c8;
  --error-text:#962d2d;
  color-scheme:light
}
html[data-theme=dark] {
  --paper:#1c2b40;
  --canvas:#101c2c;
  --ink:#edf3fb;
  --muted:#b6c3d5;
  --line:#3b4b61;
  --soft:#25354c;
  --nav:#152238;
  --error-surface:#35252e;
  --error-border:#6d3946;
  --error-text:#ffc6c6;
  color-scheme:dark
}
@media(prefers-color-scheme:dark) {
  html[data-theme=auto] {
    --paper:#1c2b40;
    --canvas:#101c2c;
    --ink:#edf3fb;
    --muted:#b6c3d5;
    --line:#3b4b61;
    --soft:#25354c;
    --nav:#152238;
  --error-surface:#35252e;
  --error-border:#6d3946;
  --error-text:#ffc6c6;
    color-scheme:dark
  }
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:Inter,"Noto Sans Arabic",system-ui,sans-serif;
  line-height:1.6
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  line-height:1.2;
  letter-spacing:-.025em
}
h1 {
  font-size:clamp(2rem,4vw,3.6rem);
  font-weight:750
}
h2 {
  font-size:clamp(1.5rem,2.5vw,2.1rem);
  font-weight:700
}
h3 {
  font-size:1.15rem;
  font-weight:700
}
a {
  color:inherit;
  text-decoration:none
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  touch-action:manipulation
}
button {
  cursor:pointer
}
img {
  max-width:100%;
  display:block
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #3276c7;
  outline-offset:3px
}
.container {
  max-width:1240px;
  margin:auto;
  padding-inline:28px
}
.section {
  padding-block:64px
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:28px
}
.section-head p {
  margin-bottom:0
}
.muted {
  color:var(--muted)
}
.eyebrow {
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:700;
  margin-bottom:16px;
  color:var(--muted)
}
.site-header {
  position:sticky;
  top:0;
  z-index:40;
  background:var(--nav);
  border-bottom:1px solid var(--line)
}
.header-row {
  display:flex;
  align-items:center;
  gap:24px;
  min-height:82px
}
.brand {
  font-size:1.1rem;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1.25
}
.brand img {
  max-width:190px;
  max-height:42px
}
.brand-mark {
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#14243b;
  width:36px;
  height:36px;
  border-radius:10px
}
.public-menu {
  display:flex;
  align-items:center;
  gap:24px;
  margin-inline-start:auto;
  font-size:.88rem;
  font-weight:600
}
.agency-link {
  color:var(--muted)
}
.language-form {
  display:flex;
  gap:5px;
  align-items:center
}
.language-form select {
  max-width:106px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:7px;
  background:var(--paper);
  color:var(--ink)
}
.language-submit {
  font-size:.72rem;
  padding:7px;
  border:0;
  background:var(--soft);
  border-radius:8px
}
.menu-toggle {
  display:none
}
.btn-primary,.btn-secondary,.btn-outline,.btn-whatsapp {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 20px;
  border-radius:10px;
  font-weight:700;
  border:1px solid transparent;
  min-height:46px;
  transition:background .15s
}
.btn-primary {
  background:var(--accent);
  color:#14243b
}
.btn-primary:hover {
  background:#e8a82b
}
.btn-secondary {
  background:#14243b;
  color:white
}
.btn-outline {
  background:var(--paper);
  color:var(--ink);
  border-color:var(--line)
}
.btn-whatsapp {
  background:#176c42;
  color:white
}
.input-field {
  display:block;
  width:100%;
  padding:12px 14px;
  min-height:48px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  color:var(--ink)
}
label {
  font-size:.85rem;
  font-weight:650;
  display:block;
  margin-bottom:7px
}
.hero {
  background:#14243b;
  color:white;
  padding-block:64px 46px
}
.hero-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:48px;
  align-items:center
}
.hero .eyebrow,.hero .muted {
  color:#bfcede
}
.hero h1 {
  max-width:620px
}
.hero p {
  max-width:540px;
  font-size:1.08rem
}
.hero-photo {
  position:relative;
  border-radius:20px;
  overflow:hidden;
  background:#24374f;
  aspect-ratio:1.5
}
.hero-photo img {
  width:100%;
  height:100%;
  object-fit:cover
}
.photo-caption {
  position:absolute;
  bottom:16px;
  inset-inline:16px;
  background:rgba(20,36,59,.85);
  border-radius:10px;
  padding:12px;
  font-size:.85rem
}
.photo-placeholder {
  height:100%;
  display:grid;
  place-items:center;
  text-align:center;
  padding:32px;
  font-weight:600;
  color:var(--muted);
  background:var(--soft)
}
.search-panel {
  margin-top:36px;
  padding:24px;
  background:var(--paper);
  color:var(--ink);
  border-radius:16px;
  box-shadow:0 16px 40px #0002
}
.search-grid {
  display:grid;
  grid-template-columns:1fr 1fr 1fr auto;
  gap:16px;
  align-items:end
}
.search-panel p {
  font-size:.8rem;
  margin:12px 0 0
}
.car-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.vehicle-card,.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden
}
.vehicle-card {
  display:flex;
  flex-direction:column
}
.vehicle-photo {
  aspect-ratio:1.6;
  position:relative;
  overflow:hidden;
  background:var(--soft)
}
.vehicle-photo img {
  height:100%;
  width:100%;
  object-fit:cover
}
.vehicle-body {
  padding:22px;
  display:flex;
  flex-direction:column;
  flex:1
}
.spec-line {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.84rem;
  margin:12px 0 20px
}
.price-row {
  border-top:1px solid var(--line);
  padding-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto
}
.price {
  font-size:1.45rem;
  font-weight:750
}
.small {
  font-size:.83rem
}
.badge {
  display:inline-block;
  background:var(--soft);
  padding:5px 10px;
  border-radius:7px;
  font-size:.75rem;
  font-weight:700
}
.badge.available {
  background:#e3f3e9;
  color:#165734
}
.badge.pending,.badge.reserved {
  background:#fff0cf;
  color:#6d4500
}
.badge.rented,.badge.confirmed {
  background:#e5edff;
  color:#244883
}
.vehicle-photo .badge {
  position:absolute;
  inset-inline-start:14px;
  top:14px
}
.category-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:16px
}
.category-tile {
  background:var(--paper);
  padding:24px;
  border:1px solid var(--line);
  border-radius:12px
}
.category-tile img {
  height:80px;
  object-fit:contain;
  margin-bottom:12px
}
.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px
}
.step-number {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  background:var(--accent);
  color:#14243b;
  border-radius:10px;
  margin-bottom:20px;
  font-weight:750
}
.panel {
  padding:28px
}
.soft-section {
  background:var(--soft)
}
.contact-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:#14243b;
  color:white;
  padding:36px;
  border-radius:18px
}
.contact-banner p {
  color:#bfcede
}
.site-footer {
  background:var(--paper);
  border-top:1px solid var(--line);
  padding-block:48px 24px
}
.footer-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.2fr;
  gap:32px
}
.site-footer h2 {
  font-size:.9rem;
  margin-bottom:16px
}
.site-footer p,.site-footer a:not(.brand) {
  font-size:.85rem;
  color:var(--muted)
}
.site-footer a:not(.brand) {
  display:block;
  margin-bottom:9px
}
.footer-bottom {
  margin-top:36px;
  border-top:1px solid var(--line);
  padding-top:20px;
  color:var(--muted);
  font-size:.8rem
}
.floating-contact {
  position:fixed;
  bottom:20px;
  inset-inline-end:20px;
  background:#176c42;
  color:#fff;
  border-radius:30px;
  padding:11px 18px;
  z-index:30;
  font-size:.85rem;
  font-weight:700;
  box-shadow:0 4px 18px #0002
}
.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:100;
  background:white;
  color:#14243b;
  padding:12px
}
.skip-link:focus {
  top:10px
}
.notice {
  padding:14px 18px;
  background:var(--soft);
  border-radius:10px
}
.notice.error,.errorlist {
  color:#a52828
}
.notices {
  padding-top:16px
}
.errorlist {
  font-size:.85rem;
  list-style:none;
  padding:0;
  margin:6px 0
}
.error-summary {
  background:#fff0f0;
  color:#8e2020;
  border-radius:10px;
  padding:16px;
  margin-bottom:20px
}
.filter-panel {
  margin-bottom:30px
}
.filter-fields {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:20px
}
.filter-panel summary {
  cursor:pointer;
  font-weight:700
}
.filter-actions {
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:20px
}
.empty-state {
  padding:52px;
  text-align:center
}
.pagination {
  display:flex;
  justify-content:center;
  gap:14px;
  align-items:center;
  margin-top:32px
}
.detail-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);
  gap:32px;
  align-items:start
}
.gallery-main {
  aspect-ratio:1.5;
  border-radius:16px;
  overflow:hidden;
  background:var(--soft)
}
.gallery-main img {
  width:100%;
  height:100%;
  object-fit:cover
}
.thumbnails {
  display:flex;
  gap:10px;
  margin:14px 0 28px;
  overflow:auto;
  padding:4px
}
.thumbnails button {
  flex-shrink:0;
  width:90px;
  height:65px;
  padding:0;
  border:2px solid transparent;
  border-radius:8px;
  overflow:hidden
}
.thumbnails button[aria-pressed=true] {
  border-color:#b67700
}
.thumbnails img {
  width:100%;
  height:100%;
  object-fit:cover
}
.spec-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}
.spec-grid dt {
  font-size:.8rem;
  color:var(--muted)
}
.spec-grid dd {
  margin:4px 0;
  font-weight:650
}
.stack {
  display:grid;
  gap:24px
}
.booking-panel {
  position:sticky;
  top:106px
}
.quote dl {
  margin:0
}
.quote-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:9px 0;
  font-size:.9rem
}
.quote-row dd {
  margin:0;
  font-weight:700
}
.quote-total {
  border-top:1px solid var(--line);
  font-size:1.1rem;
  margin-top:8px;
  padding-top:16px
}
.two-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.form-grid {
  display:grid;
  gap:20px
}
.full-width {
  width:100%
}
.breadcrumbs {
  font-size:.8rem;
  color:var(--muted);
  margin-bottom:24px
}
.prose {
  max-width:760px
}
.prose p {
  color:var(--muted)
}
details.faq {
  padding:20px;
  border-bottom:1px solid var(--line)
}
details.faq summary {
  font-weight:650;
  cursor:pointer
}
details.faq p {
  margin-top:16px;
  margin-bottom:0
}
.owner-layout {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  min-height:100vh
}
.owner-sidebar {
  background:#14243b;
  color:white;
  padding:28px 18px
}
.owner-sidebar nav {
  display:grid;
  gap:5px;
  margin-top:32px;
  position:sticky;
  top:20px
}
.owner-sidebar nav a {
  padding:12px 16px;
  border-radius:9px;
  color:#c4cfdf
}
.owner-sidebar nav a[aria-current=page] {
  background:#2a3d57;
  color:white
}
.owner-main {
  min-width:0
}
.owner-header {
  padding:18px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  background:var(--paper)
}
.owner-content {
  padding:32px;
  max-width:1450px;
  margin:auto
}
.owner-content h1 {
  font-size:2rem
}
.owner-content .section {
  padding:0
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin:24px 0
}
.metric {
  display:block;
  padding:24px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px
}
.metric strong {
  display:block;
  font-size:2rem
}
.table-wrap {
  overflow:auto
}
.data-table {
  width:100%;
  border-collapse:collapse;
  font-size:.9rem
}
.data-table th,.data-table td {
  padding:16px;
  text-align:start;
  border-bottom:1px solid var(--line)
}
.data-table th {
  color:var(--muted);
  font-size:.75rem;
  background:var(--soft)
}
.owner-booking-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.owner-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}
.owner-content .bg-white {
  background:var(--paper)
}
.owner-content .bg-slate-100,.owner-content .bg-slate-50 {
  background:var(--canvas)
}
.owner-content .text-slate-900,.owner-content .text-slate-700 {
  color:var(--ink)
}
.owner-content .text-slate-500,.owner-content .text-slate-600 {
  color:var(--muted)
}
.owner-content .sticky {
  position:static
}
.owner-content input,.owner-content select,.owner-content textarea {
  max-width:100%
}
.owner-content label.flex {
  display:flex
}
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3 {
  letter-spacing:0
}
[x-cloak] {
  display:none!important
}
@media(max-width:1100px) {
  .public-menu {
    gap:12px
  }
  .header-row {
    gap:14px
  }
  .brand {
    font-size:.95rem
  }
  .car-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .filter-fields {
    grid-template-columns:repeat(3,1fr)
  }
}
@media(max-width:850px) {
  .hero-grid {
    grid-template-columns:1fr
  }
  .hero-photo {
    max-height:300px
  }
  .search-grid {
    grid-template-columns:1fr 1fr
  }
  .public-menu {
    display:none;
    position:absolute;
    top:100%;
    inset-inline:0;
    background:var(--paper);
    padding:20px;
    box-shadow:0 8px 14px #0001
  }
  .public-menu.open {
    display:grid
  }
  .menu-toggle {
    display:inline-flex;
    margin-inline-start:auto;
    padding:8px 12px;
    min-height:40px
  }
  .header-row {
    flex-wrap:wrap;
    gap:12px;
    padding-block:14px
  }
  .language-form {
    margin-inline-start:auto
  }
  .detail-grid {
    grid-template-columns:1fr
  }
  .booking-panel {
    position:static
  }
  .footer-grid {
    grid-template-columns:1fr 1fr
  }
  .owner-layout {
    grid-template-columns:1fr
  }
  .owner-sidebar {
    padding:16px
  }
  .owner-sidebar nav {
    display:flex;
    overflow:auto;
    position:static;
    margin-top:16px
  }
  .owner-sidebar nav a {
    white-space:nowrap;
    padding:8px 12px
  }
  .owner-content {
    padding:20px
  }
  .owner-header {
    padding:16px 20px
  }
  .filter-fields {
    grid-template-columns:repeat(2,1fr)
  }
  .owner-booking-grid {
    grid-template-columns:1fr
  }
}
@media(max-width:560px) {
  .container {
    padding-inline:20px
  }
  .section {
    padding-block:40px
  }
  .hero {
    padding-block:40px
  }
  .hero-grid {
    gap:24px
  }
  .search-panel {
    padding:20px
  }
  .search-grid,.two-fields {
    grid-template-columns:1fr
  }
  .car-grid,.steps {
    grid-template-columns:1fr
  }
  .section-head {
    display:block
  }
  .section-head>a {
    display:inline-block;
    margin-top:12px
  }
  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:24px
  }
  .footer-grid>div:first-child {
    grid-column:1/-1
  }
  .contact-banner {
    display:block;
    padding:24px
  }
  .filter-fields {
    grid-template-columns:1fr
  }
  .panel {
    padding:20px
  }
  .spec-grid {
    grid-template-columns:1fr 1fr
  }
  .metric-grid {
    grid-template-columns:1fr
  }
  .language-form {
    margin-inline-start:0
  }
  .language-form select {
    max-width:85px
  }
  .brand {
    max-width:180px
  }
  .owner-header {
    gap:10px;
    flex-wrap:wrap
  }
  .floating-contact {
    bottom:12px;
    padding:8px 14px
  }
  .site-footer {
    padding-bottom:70px
  }
  .empty-state {
    padding:32px 18px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
.site-header .menu-toggle {
  display:none
}
.hero .search-panel .muted {
  color:var(--muted)
}
.hero-grid.no-photo {
  grid-template-columns:1fr
}
.hero-grid.no-photo h1 {
  max-width:900px
}
.hero-grid.no-photo p {
  max-width:700px
}
@media(max-width:850px) {
  .site-header .menu-toggle {
    display:inline-flex
  }
}
@media(max-width:560px) {
  .floating-contact {
    display:none
  }
}
.owner-sidebar {
  min-width:0
}
.owner-sidebar nav {
  min-width:0
}
.owner-content,.panel {
  overflow-wrap:anywhere
}
@media(max-width:850px) {
  .owner-layout {
    grid-template-columns:minmax(0,1fr)
  }
}
[hidden] {
  display: none !important;
}

/* Arabic needs a dedicated typeface and more room around connected letterforms. */
html:lang(ar) body {
  font-family: "Tajawal", "Noto Sans Arabic", Tahoma, sans-serif;
  line-height: 1.8;
  font-synthesis: none;
}
html:lang(ar) h1,
html:lang(ar) h2,
html:lang(ar) h3 {
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 700;
}
html:lang(ar) .eyebrow {
  letter-spacing: 0;
  font-size: .9rem;
}
html:lang(ar) label {
  font-size: .95rem;
  font-weight: 500;
}
html:lang(ar) .public-menu {
  font-size: 1rem;
}
html:lang(ar) .small,
html:lang(ar) .spec-line,
html:lang(ar) .site-footer p,
html:lang(ar) .site-footer a:not(.brand) {
  font-size: .95rem;
}
html:lang(ar) .hero p {
  font-size: 1.15rem;
}
html:lang(ar) .hero .search-panel p {
  font-size: .9rem;
}

/* Dedicated agency sign-in: a quiet brand panel and a focused, light form. */
.agency-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
}
.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding: 48px clamp(32px, 5vw, 88px);
  background: #14243b;
  color: #fff;
}
.login-intro::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  inset-inline-end: -380px;
  bottom: -270px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow: 0 0 0 75px #ffffff04, 0 0 0 150px #ffffff03;
  z-index: -1;
}
.login-brand {
  color: #fff;
  font-size: 1.2rem;
  width: fit-content;
}
.login-brand .brand-mark {
  width: 40px;
  height: 40px;
}
.login-intro-content {
  max-width: 490px;
  margin-block: auto;
  padding-block: 64px;
}
.login-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid #ffffff24;
  border-radius: 30px;
  color: #d4deec;
  font-size: .76rem;
  letter-spacing: .04em;
  margin-bottom: 26px;
}
.login-tag > span {
  width: 6px;
  height: 6px;
  background: #f5b942;
  border-radius: 50%;
}
.login-intro h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.65rem);
  line-height: 1.15;
  font-weight: 750;
  margin-bottom: 22px;
}
.login-intro-copy {
  color: #bdcbdc;
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 410px;
  margin-bottom: 34px;
}
.login-capabilities {
  display: grid;
  gap: 22px;
}
.login-capability {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-capability-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border: 1px solid #ffffff1f;
  background: #ffffff06;
  color: #f5b942;
  border-radius: 11px;
}
.login-capability-icon svg,
.login-access-icon svg {
  width: 23px;
  height: 23px;
}
.login-capability strong {
  font-size: .9rem;
  font-weight: 600;
}
.login-capability p {
  color: #acbdd2;
  font-size: .8rem;
  margin: 3px 0 0;
}
.login-intro-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9fb2ca;
  font-size: .76rem;
}
.login-footer-line {
  width: 28px;
  height: 1px;
  background: #f5b942;
}
.login-form-side {
  display: flex;
  flex-direction: column;
  padding: 48px clamp(28px, 5vw, 88px) 28px;
  background: var(--paper);
  color-scheme: inherit;
}
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-end;
  color: var(--muted);
  font-size: .84rem;
}
.login-back:hover {
  color: var(--ink);
}
.login-form-container {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding-block: 64px;
}
.login-access-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 24px;
}
.login-form-container .eyebrow {
  color: var(--muted);
  font-size: .73rem;
  margin-bottom: 12px;
}
.login-form-container h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.login-form-copy {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.login-form {
  display: grid;
  gap: 22px;
}
.login-field label {
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: 9px;
}
.login-field .input-field {
  height: 52px;
  border-color: var(--line);
  background: var(--canvas);
  color: var(--ink);
  border-radius: 10px;
}
.login-field .input-field:focus {
  background: var(--paper);
  border-color: #526d91;
  box-shadow: 0 0 0 3px #526d9112;
}
.login-password-control {
  position: relative;
}
.login-password-control input {
  padding-inline-end: 90px;
}
.login-password-toggle {
  position: absolute;
  inset-inline-end: 10px;
  top: 8px;
  padding: 8px 10px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 650;
  color: var(--muted);
  background: transparent;
}
.login-password-toggle:hover {
  color: var(--ink);
  background: var(--soft);
}
.login-submit {
  width: 100%;
  min-height: 52px;
  justify-content: space-between;
  margin-top: 4px;
  background: #f5b942;
  color: #14243b;
}
.login-help {
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
  line-height: 1.9;
  margin: 28px 0 0;
}
.login-help a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-form-footer {
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
  margin-bottom: 0;
}
.login-error {
  padding: 16px;
  border: 1px solid var(--error-border);
  background: var(--error-surface);
  color: var(--error-text);
  border-radius: 10px;
  font-size: .83rem;
}
.login-error strong {
  display: block;
  margin-bottom: 6px;
}
.login-error ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .agency-login {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  }
  .login-intro,
  .login-form-side {
    padding-inline: 28px;
  }
  .login-intro h2 {
    font-size: 2.2rem;
  }
}
@media (max-width: 700px) {
  .agency-login {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-intro {
    padding: 24px;
  }
  .login-intro-content,
  .login-intro-footer {
    display: none;
  }
  .login-form-side {
    min-height: calc(100svh - 88px);
    padding: 24px;
  }
  .login-form-container {
    padding-block: 40px;
  }
  .login-form-container h1 {
    font-size: 2rem;
  }
  .login-form-footer {
    padding-top: 20px;
  }
}

.theme-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  min-height: 42px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
}
.theme-toggle:hover {
  background: var(--soft);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .theme-icon-sun {
  display: none;
}
.theme-toggle[data-current-theme=dark] .theme-icon-moon {
  display: none;
}
.theme-toggle[data-current-theme=dark] .theme-icon-sun {
  display: block;
}
.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.login-topbar .login-back {
  align-self: auto;
}
.login-topbar .theme-toggle-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  white-space: normal;
  clip: auto;
}
.login-field .input-field:focus {
  border-color: var(--muted);
}
.login-error .errorlist {
  color: inherit;
}
.login-field .errorlist {
  color: var(--error-text);
}
