/* ============================================================
   TRANSPORT ADMIN - LOGIN PAGE
   ============================================================ */

.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: #08111d;
  color: var(--text-1);
}

.login-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-shell-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(15, 93, 115, 0.28), transparent 32%),
    radial-gradient(circle at bottom left, rgba(30, 122, 99, 0.22), transparent 26%),
    linear-gradient(180deg, #09121f 0%, #08111d 100%);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(86px);
  opacity: .55;
}

.login-orb-primary {
  top: -12%;
  right: -4%;
  width: 48vw;
  height: 48vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(38, 150, 178, 0.42), transparent 65%);
}

.login-orb-accent {
  bottom: -14%;
  left: -6%;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(37, 150, 122, 0.36), transparent 65%);
}

.login-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.45));
}

.login-topbar,
.login-main,
.login-footer {
  position: relative;
  z-index: 10;
}

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(8, 17, 29, .56);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #1a738b, var(--primary));
  box-shadow: 0 16px 30px rgba(15,93,115,.30);
}

.login-brand-copy strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
}

.login-brand-copy small {
  display: block;
  color: rgba(178, 194, 210, .76);
  font-size: .77rem;
}

.login-topbar-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233, 240, 246, .88);
  font-size: .79rem;
  font-weight: 600;
}

.login-pill i {
  color: #8be1ee;
}

.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 42px;
  align-items: center;
  max-width: 1260px;
  margin-inline: auto;
  width: 100%;
  padding: 48px 40px;
}

.login-copy {
  display: grid;
  gap: 0;
  padding-left: 8px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-full);
  background: rgba(220, 239, 243, .12);
  border: 1px solid rgba(139, 225, 238, .18);
  color: #9be4ef;
  font-size: .78rem;
  font-weight: 700;
}

.login-copy h1 {
  margin: 0 0 18px;
  max-width: 650px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
}

.login-lead {
  margin: 0 0 28px;
  max-width: 610px;
  color: rgba(208, 218, 230, .82);
  font-size: 1rem;
  line-height: 1.9;
}

.login-feature-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.login-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.login-feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #1a738b, var(--primary));
}

.login-feature-card h2 {
  margin: 1px 0 4px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}

.login-feature-card p {
  margin: 0;
  color: rgba(188, 202, 216, .78);
  font-size: .84rem;
  line-height: 1.6;
}

.login-assurance-list {
  display: grid;
  gap: 10px;
}

.login-assurance-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 14, 23, .24);
  border: 1px solid rgba(255,255,255,.08);
}

.login-assurance-item strong {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.login-assurance-item span {
  color: rgba(188, 202, 216, .76);
  font-size: .82rem;
  line-height: 1.55;
}

.login-panel-wrap {
  display: flex;
  justify-content: center;
}

.login-panel {
  width: 100%;
  max-width: 460px;
  padding: 36px 34px 28px;
  border-radius: 30px;
  background: rgba(255,255,255,.965);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    0 28px 70px rgba(6, 13, 23, .34),
    inset 0 1px 0 rgba(255,255,255,.5);
}

.login-panel-header {
  margin-bottom: 24px;
}

.login-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 700;
}

.login-panel-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-1);
}

.login-panel-header p {
  margin: 0;
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.7;
}

.alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--danger-soft);
  border: 1px solid rgba(198,71,71,.18);
  color: var(--danger);
  font-size: .87rem;
  font-weight: 600;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field-group {
  display: grid;
  gap: 6px;
}

.login-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-shell {
  position: relative;
}

.input-leading-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: .95rem;
  pointer-events: none;
}

.login-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem .8rem 3rem;
  padding-right: 46px;
  border: 1.5px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(248,250,252,.92);
  color: var(--text-1);
  font: inherit;
  font-size: .94rem;
  appearance: none;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
}

.login-input::placeholder {
  color: var(--text-3);
}

.login-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,93,115,.12);
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  display: grid;
  place-items: center;
  transition: color 150ms, background 150ms;
}

.password-toggle:hover {
  color: var(--text-1);
  background: rgba(15,93,115,.06);
}

.caps-lock-hint {
  color: var(--warning);
  font-size: .78rem;
  font-weight: 600;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .87rem;
  color: var(--text-2);
}

.login-link-button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.login-link-button:hover {
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1.5rem;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font: inherit;
  font-size: .96rem;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(15,93,115,.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15,93,115,.26);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.login-panel-footer {
  margin-top: 20px;
}

.login-trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.login-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  color: var(--success);
  font-size: .76rem;
  font-weight: 700;
}

.support-inline {
  margin: 0;
  color: var(--text-3);
  font-size: .78rem;
  line-height: 1.7;
}

.support-inline strong {
  color: var(--text-2);
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(8, 17, 29, .36);
  color: rgba(142, 159, 176, .82);
  font-size: .77rem;
  flex-wrap: wrap;
}

.login-footer-links {
  display: flex;
  gap: 14px;
}

.login-footer-links button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 150ms;
}

.login-footer-links button:hover {
  color: rgba(230, 236, 242, .88);
}

@media (max-width: 991.98px) {
  .login-main {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    gap: 28px;
  }

  .login-copy {
    padding-left: 0;
  }

  .login-panel {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .login-topbar {
    padding: 16px 20px;
  }

  .login-topbar-pills {
    display: none;
  }

  .login-main {
    padding: 24px 16px;
  }

  .login-copy h1 {
    font-size: 1.95rem;
  }

  .login-panel {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .login-footer {
    padding: 12px 20px 18px;
  }
}

/* ============================================================
   2027 LIGHT/DARK LOGIN
   ============================================================ */
html[data-theme="light"] .login-page {
  background: #f5f7fb;
  color: var(--text-1);
}

html[data-theme="light"] .login-shell-background {
  background:
    linear-gradient(180deg, rgba(237, 242, 248, 0.98), #f5f7fb 54%, #f5f7fb);
}

html[data-theme="light"] .login-shell-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

html[data-theme="light"] .login-orb {
  display: none;
}

html[data-theme="light"] .login-grid-pattern {
  opacity: 0.34;
}

html[data-theme="light"] .login-topbar,
html[data-theme="light"] .login-footer {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(23, 32, 51, 0.08);
}

html[data-theme="light"] .login-brand-icon,
html[data-theme="light"] .login-feature-icon {
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(36, 87, 166, 0.16);
}

html[data-theme="light"] .login-brand-copy strong,
html[data-theme="light"] .login-copy h1,
html[data-theme="light"] .login-feature-card h2,
html[data-theme="light"] .login-assurance-item strong,
html[data-theme="light"] .login-panel-header h2,
html[data-theme="light"] .support-inline strong {
  color: var(--text-1);
}

html[data-theme="light"] .login-brand-copy small,
html[data-theme="light"] .login-lead,
html[data-theme="light"] .login-feature-card p,
html[data-theme="light"] .login-assurance-item span,
html[data-theme="light"] .login-panel-header p,
html[data-theme="light"] .login-checkbox,
html[data-theme="light"] .support-inline,
html[data-theme="light"] .login-footer {
  color: var(--text-2);
}

html[data-theme="light"] .login-pill,
html[data-theme="light"] .login-eyebrow,
html[data-theme="light"] .login-feature-card,
html[data-theme="light"] .login-assurance-item,
html[data-theme="light"] .login-trust-pill {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

html[data-theme="light"] .login-eyebrow,
html[data-theme="light"] .login-pill i,
html[data-theme="light"] .login-link-button {
  color: var(--primary);
}

html[data-theme="light"] .login-panel {
  border-radius: 8px;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 32, 51, 0.10);
  box-shadow: var(--shadow-xl);
}

html[data-theme="light"] .login-panel-badge {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(36, 87, 166, 0.16);
  border-radius: 8px;
}

html[data-theme="light"] .login-input {
  border-radius: 8px;
  color: var(--text-1);
  background: #ffffff;
  border-color: var(--border-medium);
}

html[data-theme="light"] .login-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 166, .12);
}

html[data-theme="light"] .submit-button {
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: none;
}

html[data-theme="light"] .submit-button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .alert-box {
  border-radius: 8px;
  background: var(--danger-soft);
  border-color: rgba(191, 61, 74, 0.18);
  color: var(--danger);
}

html[data-theme="dark"] .login-page {
  background: #050b14;
  color: var(--text-1);
}

html[data-theme="dark"] .login-shell-background {
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.98), #050b14 52%, #050b14);
}

html[data-theme="dark"] .login-shell-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.12));
}

html[data-theme="dark"] .login-orb {
  display: none;
}

html[data-theme="dark"] .login-grid-pattern {
  opacity: 0.42;
  background-size: 44px 44px;
}

html[data-theme="dark"] .login-topbar,
html[data-theme="dark"] .login-footer {
  background: rgba(5, 11, 20, 0.72);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .login-brand-icon,
html[data-theme="dark"] .login-feature-icon {
  color: #03111f;
  background: linear-gradient(135deg, #7dd3fc, #2dd4bf);
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(45, 212, 191, 0.16);
}

html[data-theme="dark"] .login-pill,
html[data-theme="dark"] .login-eyebrow,
html[data-theme="dark"] .login-feature-card,
html[data-theme="dark"] .login-assurance-item,
html[data-theme="dark"] .login-trust-pill {
  border-radius: 8px;
  background: rgba(10, 20, 34, 0.80);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .login-eyebrow,
html[data-theme="dark"] .login-pill i,
html[data-theme="dark"] .login-link-button {
  color: #7dd3fc;
}

html[data-theme="dark"] .login-copy h1,
html[data-theme="dark"] .login-feature-card h2,
html[data-theme="dark"] .login-assurance-item strong {
  color: var(--text-1);
}

html[data-theme="dark"] .login-lead,
html[data-theme="dark"] .login-feature-card p,
html[data-theme="dark"] .login-assurance-item span {
  color: var(--text-2);
}

html[data-theme="dark"] .login-panel {
  border-radius: 8px;
  color: var(--text-1);
  background: rgba(10, 20, 34, 0.90);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-xl);
}

html[data-theme="dark"] .login-panel-badge {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
}

html[data-theme="dark"] .login-panel-header h2,
html[data-theme="dark"] .login-input,
html[data-theme="dark"] .support-inline strong {
  color: var(--text-1);
}

html[data-theme="dark"] .login-panel-header p,
html[data-theme="dark"] .login-checkbox,
html[data-theme="dark"] .support-inline {
  color: var(--text-2);
}

html[data-theme="dark"] .login-input {
  border-radius: 8px;
  background: rgba(5, 13, 24, 0.82);
  border-color: var(--border-medium);
}

html[data-theme="dark"] .login-input:focus {
  background: rgba(8, 18, 31, 0.98);
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

html[data-theme="dark"] .password-toggle:hover {
  color: var(--text-1);
  background: rgba(56, 189, 248, 0.08);
}

html[data-theme="dark"] .submit-button {
  border-radius: 8px;
  color: #03111f;
  background: #38bdf8;
  box-shadow: none;
}

html[data-theme="dark"] .submit-button:hover {
  background: #7dd3fc;
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .alert-box {
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.15);
  border-color: rgba(251, 113, 133, 0.28);
  color: #fecdd3;
}
