:root {
  --navy: #071b2d;
  --navy2: #11324c;
  --paper: #fbfaf6;
  --gold: #bd9650;
  --ink: #132b3e;
  --muted: #697785;
  --line: #e2e6e8;
  --danger: #b42318;
  --success: #147a55;
  --blue: #2563eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef2f3;
}
button,
input,
select {
  font: inherit;
}
.admin-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(239, 243, 244, 0.94), rgba(239, 243, 244, 0.96)),
    url("/assets/sea-breeze-map.webp") center/cover;
}
.admin-app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 28px 90px rgba(7, 27, 45, 0.2);
  backdrop-filter: blur(20px);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.login-brand b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #bd9650;
  transform: rotate(45deg);
  color: #9a7639;
  font-family: Georgia, serif;
}
.login-brand b span {
  transform: rotate(-45deg);
}
.login-brand div span {
  display: block;
  color: #99783f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.login-card h1 {
  margin: 0;
  font:
    600 34px Georgia,
    serif;
}
.login-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.admin-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.admin-field label {
  font-size: 12px;
  font-weight: 800;
}
.admin-field input,
.toolbar input,
.toolbar select,
.status-select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: 0;
}
.admin-field input:focus,
.toolbar input:focus,
.toolbar select:focus,
.status-select:focus {
  border-color: #aa8340;
  box-shadow: 0 0 0 4px rgba(189, 150, 80, 0.1);
}
.primary {
  height: 48px;
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.primary:disabled {
  opacity: 0.6;
}
.login-error {
  min-height: 18px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 12px;
}
.back-link {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}
.dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 18px;
  background: rgba(7, 27, 45, 0.97);
  color: white;
  display: flex;
  flex-direction: column;
}
.side-brand {
  padding: 8px 9px 26px;
  font:
    600 22px Georgia,
    serif;
}
.side-brand small {
  display: block;
  margin-top: 5px;
  color: #d0b474;
  font:
    800 9px Inter,
    sans-serif;
  letter-spacing: 0.17em;
}
.nav-btn {
  width: 100%;
  min-height: 44px;
  margin: 3px 0;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 750;
  cursor: pointer;
}
.nav-btn.active,
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar-foot {
  margin-top: auto;
  padding: 12px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.logout {
  border: 0;
  background: transparent;
  color: #d9c18f;
  font-weight: 800;
  cursor: pointer;
}
.workspace {
  padding: 28px clamp(18px, 3vw, 44px) 50px;
  min-width: 0;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.dash-head h1 {
  margin: 0;
  font:
    600 36px Georgia,
    serif;
}
.dash-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.mobile-menu {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 42px;
  height: 42px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}
.stat {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(13, 39, 61, 0.06);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}
.content-card {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(13, 39, 61, 0.08);
  overflow: hidden;
}
.toolbar {
  padding: 15px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.toolbar select {
  min-width: 180px;
}
.account-box { margin-left:auto; text-align:right; }
.account-box strong,.account-box small { display:block; }
.account-box small { margin-top:3px; color:var(--muted); font-size:11px; }
.account-link { margin-top:5px; padding:0; border:0; background:transparent; color:#8a672e; font-size:10px; font-weight:800; cursor:pointer; }
.panel-page[hidden],#applicationsPanel[hidden],.modal[hidden] { display:none !important; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.section-heading h2,.settings-card h2 { margin:0; font-size:28px; }
.section-heading p,.settings-card>p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.primary.compact { width:auto; min-width:160px; margin:0; padding:0 18px; }
.user-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.user-card,.settings-card { padding:20px; border:1px solid rgba(255,255,255,.9); border-radius:17px; background:rgba(255,255,255,.92); box-shadow:0 12px 32px rgba(13,39,61,.07); }
.user-card.disabled { opacity:.6; }
.user-card-top { display:flex; justify-content:space-between; gap:15px; }
.user-card-top strong,.user-card-top span { display:block; }
.user-card-top span { margin-top:4px; color:var(--muted); font-size:11px; }
.user-state { height:25px; padding:6px 9px; border-radius:999px; background:#e8f7f0; color:#147a55!important; font-size:10px!important; font-weight:800; }
.referral-link { display:block; margin:15px 0; padding:11px; border-radius:9px; background:#f1f4f5; color:#355064; overflow:auto; white-space:nowrap; font-size:11px; }
.user-actions { display:flex; flex-wrap:wrap; gap:7px; }
.settings-card { width:min(520px,100%); }
.modal { position:fixed; z-index:120; inset:0; display:grid; place-items:center; padding:20px; background:rgba(3,18,31,.58); }
.modal-card { width:min(470px,100%); padding:24px; border-radius:18px; background:#fff; box-shadow:0 30px 90px rgba(0,0,0,.28); }
.modal-head { display:flex; align-items:center; justify-content:space-between; }
.modal-head h2 { margin:0; }
.modal-head button { border:0; background:transparent; font-size:28px; cursor:pointer; }
.modal-copy { margin:8px 0 4px; color:var(--muted); font-size:13px; }
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
th {
  padding: 12px 14px;
  background: #f7f8f8;
  color: #70808d;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
td {
  padding: 14px;
  border-top: 1px solid #edf0f1;
  font-size: 12px;
  vertical-align: middle;
}
tr.is-new td:first-child {
  box-shadow: inset 3px 0 #bd9650;
}
.client-name {
  font-weight: 850;
  font-size: 13px;
}
.client-phone {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf3f5;
  color: #395266;
  font-size: 10px;
  font-weight: 850;
}
.status-select {
  height: 36px;
  padding: 0 8px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.icon-btn {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #334d60;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.icon-btn.wa {
  color: #087f5b;
  background: #effbf6;
  border-color: #c9eee0;
}
.icon-btn.danger {
  color: var(--danger);
}
.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.pager button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(3, 18, 31, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: 0.18s;
}
.drawer {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100dvh;
  padding: 27px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(3, 18, 31, 0.18);
  transform: translateX(105%);
  transition: 0.22s;
  overflow: auto;
}
.drawer.open {
  transform: none;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.drawer h2 {
  margin: 0;
  font:
    600 29px Georgia,
    serif;
}
.drawer-top small {
  color: #99783f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.drawer-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.detail {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.detail.full {
  grid-column: 1/-1;
}
.detail span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.detail b,
.detail p {
  display: block;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.drawer-actions .icon-btn {
  height: 42px;
}
.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 15px 40px rgba(3, 18, 31, 0.25);
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.18s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1200px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .dashboard {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 30;
    left: 0;
    transform: translateX(-105%);
    width: 250px;
    transition: 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .workspace {
    padding: 18px 13px 35px;
  }
  .mobile-menu {
    display: block;
  }
  .dash-head {
    justify-content: flex-start;
  }
  .dash-head h1 {
    font-size: 29px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar {
    flex-direction: column;
  }
  .toolbar select {
    width: 100%;
  }
  .user-cards { grid-template-columns:1fr; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .account-box { display:none; }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail.full {
    grid-column: auto;
  }
}
@media (max-width: 430px) {
  .login-card {
    padding: 28px 21px;
    border-radius: 21px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 21px;
  }
  .dash-head p {
    display: none;
  }
}

/* V10 login: one focused panel on every screen. */
.login-page-bg {
  background:
    linear-gradient(125deg, rgba(3, 20, 34, 0.9), rgba(7, 38, 55, 0.7)),
    url("/assets/sea-breeze-map.webp") center/cover;
}
.login-shell {
  padding: 24px;
}
.login-card {
  width: min(470px, 100%);
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(1, 13, 23, 0.36);
}
.login-visual {
  display: none !important;
}
.login-content {
  padding: 38px;
}
.login-logo-dark {
  margin-bottom: 38px;
  color: #10283a;
}
.login-logo-dark b {
  color: #9a7333;
}
.login-content h1 {
  margin: 9px 0 7px;
  font-size: 30px;
}
.login-content > p {
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .login-shell {
    min-height: 100svh;
    padding: 18px;
  }
  .login-card {
    max-width: 410px;
    border-radius: 17px;
  }
  .login-content {
    padding: 29px 22px 22px;
  }
  .login-logo-dark {
    margin-bottom: 30px;
  }
  .login-content h1 {
    font-size: 27px;
  }
  .login-content > p {
    margin-bottom: 20px;
  }
  .login-content .admin-field input {
    height: 49px;
  }
  .login-content .primary {
    height: 50px;
    margin-top: 16px;
  }
}

/* V2 login: stronger contrast, compact spacing and a clearer premium hierarchy. */
.login-page-bg {
  background:
    linear-gradient(110deg, rgba(4, 22, 37, 0.92), rgba(4, 22, 37, 0.68)),
    url("/assets/sea-breeze-map.webp") center/cover;
}
.login-shell {
  padding: 24px;
}
.login-card {
  width: min(860px, 100%);
  padding: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: #fffdfa;
  box-shadow: 0 34px 100px rgba(1, 12, 22, 0.38);
  backdrop-filter: none;
}
.login-visual {
  position: relative;
  min-height: 510px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(205, 172, 106, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 74%,
      rgba(34, 106, 133, 0.34),
      transparent 40%
    ),
    linear-gradient(145deg, #071a2b 0%, #0a2b40 55%, #071d2e 100%);
}
.login-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(219, 190, 127, 0.25);
  border-radius: 17px;
  pointer-events: none;
}
.login-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.login-logo b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d1ae68;
  transform: rotate(45deg);
  color: #e5ca91;
  font:
    600 17px Georgia,
    serif;
}
.login-logo b span {
  transform: rotate(-45deg);
}
.login-visual-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 24px 24px 24px 25px;
  border-left: 2px solid rgba(218, 184, 112, 0.82);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: 18px 0 45px rgba(1, 13, 23, 0.13) inset;
}
.login-visual-copy > span {
  color: #dbbe7f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.2em;
}
.login-visual-copy h2 {
  max-width: 310px;
  margin: 13px 0 13px;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.login-visual-copy p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.65;
}
.login-visual > small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.login-content {
  padding: 56px 52px 42px;
  align-self: center;
}
.login-kicker {
  color: #9b7738;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}
.login-content h1 {
  margin: 8px 0 8px;
  color: #102538;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.login-content > p {
  max-width: 390px;
  margin: 0 0 24px;
  color: #70808d;
  font-size: 12px;
  line-height: 1.6;
}
.login-content .admin-field {
  margin-top: 13px;
}
.login-content .admin-field label {
  color: #2d4456;
  font-size: 11px;
}
.login-content .admin-field input {
  width: 100%;
  height: 48px;
  border-radius: 11px;
  background: #f9faf9;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 72px;
}
.password-wrap button {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 58px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: #edf1f2;
  color: #526675;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.login-content .primary {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 11px;
  box-shadow: 0 13px 28px rgba(7, 27, 45, 0.18);
  transition: 0.18s ease;
}
.login-content .primary:hover {
  background: var(--navy2);
  transform: translateY(-1px);
}
.login-content .back-link {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .login-shell {
    padding: 14px;
  }
  .login-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 22px;
  }
  .login-visual {
    min-height: 170px;
    padding: 26px;
  }
  .login-visual-copy {
    margin-top: 35px;
  }
  .login-visual-copy h2 {
    max-width: 360px;
    margin: 8px 0 0;
    font-size: 24px;
  }
  .login-visual-copy p,
  .login-visual > small {
    display: none;
  }
  .login-content {
    padding: 32px 26px 25px;
  }
}

/* V10 FINAL LOGIN — one clean card, no duplicated visual panel. */
.login-page-bg {
  background:
    linear-gradient(125deg, rgba(3, 20, 34, 0.9), rgba(7, 38, 55, 0.7)),
    url("/assets/sea-breeze-map.webp") center/cover;
}
.login-shell {
  padding: 24px;
}
.login-card {
  width: min(470px, 100%);
  display: block;
  grid-template-columns: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(1, 13, 23, 0.36);
}
.login-visual {
  display: none !important;
}
.login-content {
  padding: 38px;
}
.login-logo-dark {
  margin-bottom: 38px;
  color: #10283a;
}
.login-logo-dark b {
  color: #9a7333;
}
.login-content h1 {
  margin: 9px 0 7px;
  font-size: 30px;
}
.login-content > p {
  margin-bottom: 25px;
}
@media (max-width: 600px) {
  .login-shell {
    min-height: 100svh;
    padding: 18px;
  }
  .login-card {
    max-width: 410px;
    border-radius: 17px;
  }
  .login-content {
    padding: 29px 22px 22px;
  }
  .login-logo-dark {
    margin-bottom: 30px;
  }
  .login-content h1 {
    font-size: 27px;
  }
  .login-content > p {
    margin-bottom: 20px;
  }
  .login-content .admin-field input {
    height: 49px;
  }
  .login-content .primary {
    height: 50px;
    margin-top: 16px;
  }
}

@media (max-width: 430px) {
  .login-card {
    padding: 0;
  }
  .login-content {
    padding: 28px 20px 22px;
  }
  .login-content h1 {
    font-size: 27px;
  }
}

/* V3: distinct CRM panel and polished one-time entrance. */
.login-page-bg {
  animation: login-bg-reveal 1.05s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.login-card {
  animation: login-card-enter 0.78s 0.12s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}
.login-visual {
  isolation: isolate;
}
.login-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}
.login-logo {
  animation: login-copy-enter 0.65s 0.34s ease both;
}
.login-visual-copy {
  animation: login-copy-enter 0.72s 0.42s ease both;
}
.login-visual > small {
  animation: login-copy-enter 0.65s 0.5s ease both;
}
.login-content {
  animation: login-content-enter 0.72s 0.32s ease both;
}
.login-content .admin-field input {
  border-radius: 8px;
  background: #fbfcfb;
}
.password-wrap button {
  border-radius: 6px;
}
.login-content .primary {
  border-radius: 8px;
}

@keyframes login-bg-reveal {
  from {
    opacity: 0;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes login-card-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes login-copy-enter {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes login-content-enter {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .login-visual-copy {
    padding: 15px 17px;
  }
}

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

/* V4: neutral typography and a compact, business-like sign-in screen. */
body,
button,
input,
select {
  font-family: Arial, "Segoe UI", sans-serif;
}
.login-card {
  width: min(800px, 100%);
  grid-template-columns: 0.78fr 1.22fr;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(1, 12, 22, 0.34);
}
.login-visual {
  min-height: 470px;
  padding: 30px;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(205, 172, 106, 0.16),
      transparent 30%
    ),
    linear-gradient(155deg, #071a2b 0%, #0b3349 100%);
}
.login-visual::after {
  inset: 10px;
  border-radius: 9px;
}
.login-visual-copy {
  padding: 20px;
  border-left-width: 1px;
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}
.login-visual-copy > span {
  font-weight: 700;
}
.login-visual-copy h2 {
  margin: 10px 0 11px;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.login-visual-copy p {
  font-size: 12px;
  line-height: 1.55;
}
.login-content {
  padding: 44px 48px 35px;
}
.login-content h1 {
  margin-top: 7px;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.login-content > p {
  margin-bottom: 21px;
}
.login-content .admin-field label {
  font-weight: 600;
}
.login-content .admin-field input {
  height: 46px;
  border-radius: 6px;
}
.password-wrap button,
.login-content .primary {
  border-radius: 6px;
}
.login-content .primary {
  font-weight: 700;
}

@media (max-width: 760px) {
  .login-card {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .login-visual {
    min-height: 150px;
  }
  .login-content {
    padding: 30px 25px 24px;
  }
}

/* V10 ABSOLUTE FINAL LOGIN */
.login-page-bg {
  background:
    linear-gradient(125deg, rgba(3, 20, 34, 0.9), rgba(7, 38, 55, 0.7)),
    url("/assets/sea-breeze-map.webp") center/cover;
}
.login-shell {
  padding: 24px;
}
.login-card {
  width: min(470px, 100%);
  display: block;
  grid-template-columns: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(1, 13, 23, 0.36);
}
.login-visual {
  display: none !important;
}
.login-content {
  padding: 38px;
}
.login-logo-dark {
  margin-bottom: 38px;
  color: #10283a;
}
.login-logo-dark b {
  color: #9a7333;
}
.login-content h1 {
  margin: 9px 0 7px;
  font-size: 30px;
}
.login-content > p {
  margin-bottom: 25px;
}
@media (max-width: 600px) {
  .login-shell {
    min-height: 100svh;
    padding: 18px;
  }
  .login-card {
    max-width: 410px;
    border-radius: 17px;
  }
  .login-content {
    padding: 29px 22px 22px;
  }
  .login-logo-dark {
    margin-bottom: 30px;
  }
  .login-content h1 {
    font-size: 27px;
  }
  .login-content > p {
    margin-bottom: 20px;
  }
  .login-content .admin-field input {
    height: 49px;
  }
  .login-content .primary {
    height: 50px;
    margin-top: 16px;
  }
}
