:root {
  --fleet-primary: #2563eb;
  --fleet-primary-dark: #1d4ed8;
  --fleet-success: #10b981;
  --fleet-orange: #f59e0b;
  --fleet-ink: #0f172a;
  --fleet-muted: #64748b;
  --fleet-line: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body.fleet-login-page {
  min-height: 100vh;
  margin: 0;
  display: block;
  background: #f8fafc;
  color: var(--fleet-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fleet-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr);
}

.fleet-auth-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 112px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 20, 38, .98), rgba(13, 42, 82, .96)),
    #071426;
}

.fleet-auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom right, #000, transparent 76%);
}

.fleet-auth-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 180px;
  right: 8%;
  bottom: 9%;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 180px 180px 32px 32px;
  transform: skewX(-8deg);
  box-shadow: inset 0 0 50px rgba(37,99,235,.14), 0 0 80px rgba(14,165,233,.1);
}

.fleet-auth-visual__glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
}

.fleet-auth-visual__glow--one {
  top: -170px;
  right: -90px;
  background: rgba(37, 99, 235, .4);
}

.fleet-auth-visual__glow--two {
  bottom: -210px;
  left: -110px;
  background: rgba(6, 182, 212, .24);
}

.fleet-auth-visual__content {
  width: min(680px, 100%);
  position: relative;
  z-index: 1;
}

.fleet-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  margin-bottom: 28px;
  border: 1px solid rgba(125,211,252,.26);
  border-radius: 999px;
  background: rgba(37,99,235,.16);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fleet-auth-kicker i {
  color: #34d399;
  font-size: 7px;
  box-shadow: 0 0 0 5px rgba(52,211,153,.11);
  border-radius: 50%;
}

.fleet-auth-visual h1 {
  max-width: 660px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.fleet-auth-visual > .fleet-auth-visual__content > p {
  max-width: 590px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.72;
}

.fleet-auth-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
}

.fleet-auth-feature {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
}

.fleet-auth-feature > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37,99,235,.28), rgba(14,165,233,.18));
  color: #7dd3fc;
  font-size: 15px;
}

.fleet-auth-feature:nth-child(1) > span {
  background: linear-gradient(135deg, rgba(16,185,129,.28), rgba(52,211,153,.16));
  color: #6ee7b7;
}

.fleet-auth-feature:nth-child(2) > span {
  background: linear-gradient(135deg, rgba(245,158,11,.3), rgba(251,191,36,.16));
  color: #fcd34d;
}

.fleet-auth-feature strong,
.fleet-auth-feature small {
  display: block;
}

.fleet-auth-feature strong {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.4;
}

.fleet-auth-feature small {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.fleet-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 6vw, 96px);
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.1), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(14,165,233,.06), transparent 28%),
    #f8fafc;
}

.fleet-auth-card {
  width: min(430px, 100%);
}

.fleet-auth-logo {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.fleet-auth-logo img {
  display: block;
  max-width: 210px;
  max-height: 76px;
  object-fit: contain;
}

.fleet-auth-heading {
  margin-bottom: 32px;
}

.fleet-auth-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--fleet-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fleet-auth-eyebrow::after {
  content: "";
  width: 30px;
  height: 3px;
  display: inline-block;
  margin-left: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fleet-success), var(--fleet-orange));
  vertical-align: middle;
}

.fleet-auth-heading h2 {
  margin: 0 0 10px;
  color: var(--fleet-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.fleet-auth-heading p {
  margin: 0;
  color: var(--fleet-muted);
  font-size: 15px;
}

.fleet-auth-form .form-group {
  margin-bottom: 20px;
}

.fleet-field > label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.fleet-field .input-group {
  height: 54px;
  flex-wrap: nowrap;
  overflow: hidden;
  border: 1px solid var(--fleet-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.fleet-field .input-group:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
  transform: translateY(-1px);
}

.fleet-field .input-group-prepend {
  display: flex;
}

.fleet-field .input-group-text {
  width: 48px !important;
  border: 0;
  background: transparent;
  color: #94a3b8;
}

.fleet-field .form-control {
  height: 52px;
  padding: 0 15px 0 0;
  border: 0;
  background: transparent;
  color: var(--fleet-ink);
  font-size: 15px;
  box-shadow: none !important;
}

.fleet-field .form-control::placeholder {
  color: #94a3b8;
}

.fleet-field .invalid-feedback {
  position: absolute;
  top: 56px;
  left: 0;
  font-size: 12px;
}

.fleet-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 25px;
  color: #475569;
  font-size: 13px;
}

.fleet-auth-options a {
  color: var(--fleet-primary);
  font-weight: 700;
}

.fleet-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fleet-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--fleet-primary);
}

.fleet-remember label {
  margin: 0;
  font-weight: 600 !important;
}

.fleet-auth-submit {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 52%, #059669 112%);
  box-shadow: 0 14px 28px rgba(37,99,235,.25);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fleet-auth-submit:hover,
.fleet-auth-submit:focus {
  background: linear-gradient(135deg, #1e40af, #1d4ed8 52%, #047857 112%);
  box-shadow: 0 18px 34px rgba(37,99,235,.32);
  transform: translateY(-2px);
}

.fleet-auth-submit i {
  font-size: 12px;
}

.fleet-auth-security {
  margin: 28px 0 0;
  color: #94a3b8;
  text-align: center;
  font-size: 11px;
  letter-spacing: .02em;
}

.fleet-auth-security i {
  margin-right: 6px !important;
  color: #64748b;
}

.fleet-login-page .custom-alert {
  top: 24px;
  right: 24px;
  max-width: 420px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15,23,42,.16);
}

@media (max-width: 1060px) {
  .fleet-auth-shell {
    grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  }

  .fleet-auth-features {
    grid-template-columns: 1fr;
  }

  .fleet-auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .fleet-auth-feature > span {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .fleet-auth-shell {
    display: block;
  }

  .fleet-auth-visual {
    display: none;
  }

  .fleet-auth-form-panel {
    min-height: 100vh;
    padding: 40px 24px;
  }

  .fleet-auth-card {
    padding: 34px 30px;
    border: 1px solid rgba(226,232,240,.8);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 22px 70px rgba(15,23,42,.1);
  }

  .fleet-auth-logo {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .fleet-auth-form-panel {
    align-items: flex-start;
    padding: 24px 16px;
  }

  .fleet-auth-card {
    padding: 26px 20px;
  }

  .fleet-auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
