:root {
  --avc-burgundy: #750b2c;
  --avc-burgundy-deep: #430518;
  --avc-burgundy-mid: #5c071f;
  --avc-gold: #e1b964;
  --avc-gold-light: #f1d899;
  --avc-cream: #fff8ea;
  --avc-error: #ffb9ae;
  --avc-success: #b9e0c1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--avc-burgundy-deep);
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: var(--avc-gold-light);
}

.carrier-auth-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
}

.dock-panel,
.signin-panel {
  min-width: 0;
}

.dock-panel {
  isolation: isolate;
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(2rem, 4.5vw, 4.75rem);
  background-color: #253c50;
  background-image: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dock-panel[data-ambience="dawn"] {
  background-image: url("../assets/images/carrier-loading-dock-dawn.webp?v=20260804-time-2");
}

.dock-panel[data-ambience="day"] {
  background-image: url("../assets/images/carrier-loading-dock-day.webp?v=20260804-time-2");
}

.dock-panel[data-ambience="sunset"] {
  background-image: url("../assets/images/carrier-loading-dock-sunset.webp?v=20260804-time-2");
}

.dock-panel[data-ambience="night"] {
  background-image: url("../assets/images/carrier-loading-dock-night.webp?v=20260804-time-2");
}

.dock-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 39, 0.52) 0%, rgba(10, 25, 39, 0.16) 43%, rgba(10, 25, 39, 0.06) 68%, rgba(10, 25, 39, 0.34) 100%),
    linear-gradient(0deg, rgba(9, 22, 34, 0.7) 0%, transparent 40%, rgba(9, 22, 34, 0.18) 100%);
  content: "";
}

.dock-content {
  display: flex;
  width: min(100%, 760px);
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.brand-lockup,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 15px 36px rgba(6, 17, 28, 0.24);
  backdrop-filter: blur(10px);
}

.brand-mark img {
  display: block;
  width: 43px;
  height: auto;
  filter: drop-shadow(0 5px 12px rgba(24, 2, 9, 0.2));
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  letter-spacing: 0.01em;
  line-height: 1.03;
  text-shadow: 0 2px 18px rgba(5, 17, 28, 0.48);
}

.brand-name span {
  display: block;
}

.brand-name span:last-child {
  margin-top: 0.3rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.dock-message {
  max-width: 37rem;
  margin: auto 0;
  padding: clamp(4rem, 12vh, 8rem) 0;
}

.dock-kicker,
.auth-kicker,
.dock-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  text-transform: uppercase;
}

.dock-kicker,
.auth-kicker {
  color: var(--avc-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.dock-kicker::before,
.auth-kicker::before,
.dock-footer::before {
  width: 2.2rem;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.dock-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  margin: 1.25rem 0 0;
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 650;
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(5, 17, 28, 0.62);
}

.dock-capabilities span {
  color: var(--avc-gold-light);
}

.dock-footer {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-shadow: 0 2px 14px rgba(5, 17, 28, 0.58);
}

.dock-footer::before {
  color: var(--avc-gold-light);
}

.signin-panel {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(2.25rem, 5.5vw, 5.5rem);
  place-items: center;
  background:
    radial-gradient(circle at 78% 15%, rgba(220, 164, 75, 0.12), transparent 30%),
    radial-gradient(circle at 8% 85%, rgba(145, 20, 60, 0.32), transparent 38%),
    linear-gradient(145deg, var(--avc-burgundy-deep) 0%, var(--avc-burgundy-mid) 58%, #360311 100%);
}

.signin-panel::before {
  position: absolute;
  right: -10rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(226, 185, 100, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 4.5rem rgba(226, 185, 100, 0.025),
    0 0 0 9rem rgba(226, 185, 100, 0.018);
  content: "";
  pointer-events: none;
}

.signin-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
}

.mobile-brand {
  display: none;
  margin-bottom: 2.6rem;
}

.mobile-brand .brand-mark {
  width: 52px;
  height: 57px;
  border-radius: 14px;
}

.mobile-brand .brand-mark img {
  width: 35px;
}

.auth-kicker {
  margin-bottom: 1.15rem;
}

.signin-wrap h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.auth-intro {
  margin: 1.1rem 0 2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.notice {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--avc-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  line-height: 1.5;
}

.notice strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
}

.notice p {
  margin: 0;
}

.notice-success {
  border-left-color: var(--avc-success);
}

.notice-error {
  border-left-color: var(--avc-error);
}

.field {
  margin-bottom: 1.2rem;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.81rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 54px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  outline: 0;
  background: rgba(22, 0, 8, 0.22);
  color: #fff;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

input:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

input:focus {
  border-color: var(--avc-gold);
  background: rgba(22, 0, 8, 0.38);
  box-shadow: 0 0 0 4px rgba(225, 185, 100, 0.14);
}

.inline-link,
.secondary-links a,
.status-actions a {
  color: var(--avc-gold-light);
  font-weight: 700;
  text-decoration: none;
}

.inline-link {
  font-size: 0.78rem;
}

.inline-link:hover,
.secondary-links a:hover,
.status-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 4.7rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  min-width: 3.3rem;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--avc-gold-light);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle:focus-visible,
.submit-button:focus-visible,
.primary-action:focus-visible,
.brand-lockup:focus-visible,
.mobile-brand:focus-visible,
.inline-link:focus-visible,
.secondary-links a:focus-visible {
  outline: 3px solid rgba(241, 216, 153, 0.42);
  outline-offset: 3px;
}

.submit-button,
.primary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7c576, #d39e43);
  box-shadow: 0 13px 28px rgba(13, 0, 5, 0.28);
  color: #3b0716;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.submit-button {
  width: 100%;
}

.submit-button::after,
.primary-action::after {
  content: "\2192";
  font-size: 1.05rem;
  transition: transform 150ms ease;
}

.submit-button:hover,
.primary-action:hover {
  box-shadow: 0 16px 34px rgba(13, 0, 5, 0.36);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.submit-button:hover::after,
.primary-action:hover::after {
  transform: translateX(3px);
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.portal-email-action {
  width: 100%;
}

.account-choices {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.account-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
}

.account-choice:focus-within {
  border-color: var(--avc-gold-light);
  box-shadow: 0 0 0 3px rgba(241, 216, 153, 0.22);
}

.secondary-links {
  display: grid;
  gap: 0.75rem;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.secondary-links p {
  margin: 0;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.8rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.secure-note::before {
  width: 1.5rem;
  height: 1px;
  background: var(--avc-gold);
  content: "";
}

.status-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-action {
  min-width: 9.5rem;
  padding: 0.9rem 1.25rem;
}

.status-actions > a:not(.primary-action) {
  padding: 0.8rem 0.25rem;
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .carrier-auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  .dock-panel {
    padding: 2.25rem;
    background-position: 48% center;
  }

  .dock-message {
    padding: 3rem 0;
  }
}

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

  .dock-panel {
    display: none;
  }

  .signin-panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: 2rem 1.4rem;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .signin-wrap h1 {
    font-size: clamp(2.65rem, 13vw, 3.7rem);
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .dock-panel,
  .signin-panel {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .dock-message {
    padding: 2.5rem 0;
  }

  .auth-intro {
    margin-bottom: 1.2rem;
  }

  .field {
    margin-bottom: 0.9rem;
  }

  .secondary-links {
    gap: 0.45rem;
    margin-top: 0.9rem;
  }

  .secure-note {
    margin-top: 1.1rem;
    padding-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
