:root {
  --login-panel: rgba(255, 252, 246, 0.97);
  --login-gold: #d0a34b;
  --login-gold-dark: #9b7128;
  --login-navy: #061a31;
  --login-deep: #041526;
}

html {
  min-height: 100%;
  background: var(--login-deep);
}

body.platform-login-app[data-login-theme="maritime-dawn"] {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: #13243a;
  background: var(--login-deep);
}

.maritime-login-backdrop,
.maritime-login-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.maritime-login-backdrop {
  z-index: 0;
  background-image: url("/static/assets/sigvora-maritime-dawn-login-v2.webp");
  background-position: center;
  background-size: cover;
  filter: brightness(1.1) saturate(0.94);
  transform: scale(1.012);
}

.maritime-login-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 21, 38, 0.83) 0%, rgba(4, 21, 38, 0.64) 42%, rgba(4, 21, 38, 0.24) 70%, rgba(4, 21, 38, 0.43) 100%),
    linear-gradient(180deg, rgba(4, 21, 38, 0.18) 0%, rgba(4, 21, 38, 0.01) 58%, rgba(4, 21, 38, 0.26) 100%);
}

.sigvora-header {
  position: absolute;
  z-index: 4;
  top: 5.8vh;
  left: 6.1vw;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.sigvora-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: white;
  text-decoration: none;
}

.sigvora-emblem {
  position: relative;
  width: 58px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid #d0a34b;
  border-radius: 45% 45% 48% 48% / 24% 24% 72% 72%;
  color: #d0a34b;
  background: rgba(4, 21, 38, 0.22);
  clip-path: polygon(50% 0, 94% 17%, 84% 78%, 50% 100%, 16% 78%, 6% 17%);
  box-shadow: none;
}

.sigvora-emblem b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.sigvora-emblem i {
  position: absolute;
  bottom: 8px;
  left: 50%;
  font-size: 0.52rem;
  font-style: normal;
  transform: translateX(-50%);
}

.brand-copy {
  display: grid;
  gap: 5px;
}

.sigvora-brand strong {
  color: white;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.23em;
  line-height: 1;
}

.sigvora-brand small {
  color: #e0b457;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.23em;
  line-height: 1;
  text-transform: uppercase;
}

.access-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  display: block;
  box-sizing: border-box;
}

.access-intro {
  position: absolute;
  inset: 0;
  min-height: 100%;
  display: block;
  color: white;
}

.hero-watermark {
  position: absolute;
  z-index: 0;
  top: 38%;
  left: 52%;
  width: min(680px, 47vw);
  height: auto;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.22);
  opacity: 0.72;
}

.hero-watermark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.watermark-shield {
  stroke-width: 8;
}

.watermark-compass,
.watermark-waterline {
  stroke-width: 3;
}

.watermark-yacht {
  stroke-width: 4;
}

.access-intro-copy {
  position: absolute;
  z-index: 2;
  top: 26.5vh;
  left: 6.1vw;
  width: min(900px, 56vw);
}

.hero-accent {
  width: 64px;
  height: 3px;
  margin-bottom: 30px;
  display: block;
  background: var(--login-gold);
}

.access-intro h1 {
  max-width: none;
  margin: 0;
  color: white;
  font-size: clamp(2.9rem, 3.25vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  white-space: nowrap;
  text-shadow: 0 5px 32px rgba(4, 21, 38, 0.55);
}

.hero-support {
  max-width: 620px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-note {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
  line-height: 1.5;
}

.access-card,
.chooser-card {
  width: min(520px, 28.4vw);
  padding: 48px 47px 42px;
  box-sizing: border-box;
  border: 1px solid rgba(208, 163, 75, 0.34);
  border-radius: 18px;
  color: #13243a;
  background: var(--login-panel);
  box-shadow: 0 34px 90px rgba(4, 21, 38, 0.42);
}

.access-card {
  position: absolute;
  z-index: 3;
  top: 18.5vh;
  right: 10.5vw;
  max-width: none;
}

.access-card .sigvora-eyebrow,
.chooser-card .sigvora-eyebrow {
  margin: 0 0 18px;
  color: var(--login-gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.access-card h2,
.chooser-card h2 {
  margin: 0;
  color: var(--login-navy);
  font-size: 2rem;
  line-height: 1.12;
}

.sigvora-form {
  margin-top: 30px;
}

.sigvora-form label {
  margin: 0 0 10px;
  display: block;
  color: var(--login-navy);
  font-size: 0.92rem;
  font-weight: 750;
}

.sigvora-form input {
  width: 100%;
  min-height: 52px;
  margin: 0 0 20px;
  padding: 0 15px;
  box-sizing: border-box;
  border: 1px solid #b8c3cd;
  border-radius: 8px;
  color: #13243a;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
}

.sigvora-form input::placeholder {
  color: #8a98a6;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-eye {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 17px;
  height: 11px;
  border: 2px solid #667786;
  border-radius: 50%;
  box-sizing: border-box;
}

.password-eye::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: #667786;
}

.sigvora-status:empty {
  display: none;
}

.sigvora-status {
  margin: -8px 0 15px;
  color: #a4433d;
  font-size: 0.86rem;
  line-height: 1.4;
}

.sigvora-button {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sigvora-button > span {
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.66rem;
}

.login-divider {
  margin: 20px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: white;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(208, 163, 75, 0.82));
}

.login-divider::after {
  background: linear-gradient(90deg, rgba(208, 163, 75, 0.82), transparent);
}

.login-divider span {
  width: 27px;
  height: 31px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 94% 17%, 84% 78%, 50% 100%, 16% 78%, 6% 17%);
  background: linear-gradient(145deg, #e0b457, #a87320);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.crew-registration {
  padding: 17px 19px;
  display: grid;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: rgba(6, 26, 49, 0.055);
}

.crew-registration strong {
  color: var(--login-navy);
  font-size: 0.87rem;
}

.crew-registration a {
  color: var(--login-gold-dark);
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crew-registration a span {
  margin-left: 7px;
  text-decoration: none;
}

.security-copy {
  margin: 19px 0 0;
  color: #677786;
  font-size: 0.82rem;
  line-height: 1.45;
}

.chooser-card {
  position: absolute;
  z-index: 3;
  top: 15vh;
  right: 6.1vw;
  width: min(700px, 42vw);
  max-width: 680px;
}

.access-shell.chooser-open {
  width: 100%;
  min-height: 100svh;
  padding: 0;
}

.access-shell.chooser-open .access-intro {
  display: flex;
}

.access-shell.chooser-open .chooser-card {
  position: absolute;
  top: 15vh;
  right: 6.1vw;
}

.chooser-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.chooser-card .sigvora-muted {
  margin: 12px 0 0;
  color: #677786;
  line-height: 1.45;
}

.sigvora-link-button {
  flex: 0 0 auto;
}

.dashboard-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-card {
  min-height: 145px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid #d9e0e5;
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-card:hover {
  border-color: var(--login-gold);
  box-shadow: 0 12px 26px rgba(4, 21, 38, 0.09);
  transform: translateY(-2px);
}

.dashboard-card strong {
  color: var(--login-navy);
  font-size: 1rem;
}

.dashboard-card p {
  margin: 9px 0 18px;
  color: #677786;
  font-size: 0.86rem;
  line-height: 1.42;
}

.dashboard-card span {
  margin-top: auto;
  color: var(--login-gold-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .access-intro h1 {
    font-size: clamp(2.45rem, 4.7vw, 3.3rem);
    white-space: normal;
  }

  .access-intro-copy {
    width: 52vw;
  }

  .access-card {
    right: 4vw;
    width: 380px;
    padding-inline: 38px;
  }

  .chooser-card,
  .access-shell.chooser-open .chooser-card {
    right: 4vw;
    width: 46vw;
  }

  .dashboard-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .maritime-login-shade {
    background: linear-gradient(180deg, rgba(4, 21, 38, 0.82), rgba(4, 21, 38, 0.42) 54%, rgba(4, 21, 38, 0.76));
  }

  .sigvora-header {
    position: relative;
    top: auto;
    left: auto;
    width: min(100% - 36px, 720px);
    min-height: 86px;
    margin: 0 auto;
    padding: 20px 0 12px;
  }

  .sigvora-emblem {
    width: 44px;
    height: 52px;
    font-size: 1.35rem;
  }

  .sigvora-brand strong {
    font-size: 1.22rem;
  }

  .access-shell,
  .access-shell.chooser-open {
    width: min(100% - 36px, 720px);
    min-height: calc(100svh - 86px);
    margin: 0 auto;
    padding: 30px 0 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .access-intro {
    position: relative;
    inset: auto;
    min-height: auto;
    padding: 34px 0 18px;
  }

  .hero-watermark {
    top: 50%;
    left: 58%;
    width: min(520px, 96vw);
  }

  .access-intro-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .access-intro h1 {
    font-size: clamp(2.3rem, 9.6vw, 3.8rem);
  }

  .access-card,
  .chooser-card,
  .access-shell.chooser-open .chooser-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    grid-column: 1;
    justify-self: stretch;
  }

  .dashboard-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sigvora-header,
  .access-shell,
  .access-shell.chooser-open {
    width: min(100% - 24px, 480px);
  }

  .sigvora-brand {
    gap: 12px;
  }

  .sigvora-brand strong {
    font-size: 1.06rem;
    letter-spacing: 0.18em;
  }

  .sigvora-brand small {
    font-size: 0.61rem;
    letter-spacing: 0.17em;
  }

  .access-intro {
    padding-top: 18px;
  }

  .access-intro h1 {
    font-size: clamp(2rem, 10.5vw, 2.9rem);
  }

  .hero-support {
    margin-top: 24px;
  }

  .access-card,
  .chooser-card {
    padding: 34px 22px 30px;
    border-radius: 16px;
  }

  .chooser-heading {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maritime-login-backdrop {
    transform: none;
  }

  .dashboard-card {
    transition: none;
  }
}
/* SIGVORA OFFICIAL WATERMARK START */
.hero-logo-watermark {
  top: 63%;
  top: calc(75vh - min(118px, 7.73vw));
  left: 41%;
  left: calc(50vw - 14.4vh);
  width: min(700px, 46vw);
  height: auto;
  display: block;
  overflow: hidden;
  opacity: 0.22;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, #000 76%, rgba(0, 0, 0, 0.92) 82%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, #000 76%, rgba(0, 0, 0, 0.92) 82%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-logo-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 820px) {
  .hero-logo-watermark {
    display: none;
  }
}
/* SIGVORA OFFICIAL WATERMARK END */
