:root {
  --auth-navy: #063a69;
  --auth-blue: #0e73bf;
  --auth-gold: #f8a50b;
  --auth-yellow: #f9ca24;
  --auth-ink: #14283b;
  --auth-muted: #657487;
  --auth-border: #dce4ec;
  --auth-surface: #ffffff;
  --auth-page: #edf2f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--auth-page);
}

body {
  margin: 0;
  color: var(--auth-ink);
  background: var(--auth-page);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  padding: 34px;
  place-items: center;
}

.auth-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.72), transparent 48%),
    linear-gradient(305deg, rgba(6, 58, 105, 0.05), transparent 42%);
  content: "";
  pointer-events: none;
}

.auth-network-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.94;
  pointer-events: none;
}

.auth-skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--auth-ink);
  background: var(--auth-yellow);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.auth-skip-link:focus {
  transform: translateY(0);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100svh - 68px));
  overflow: hidden;
  border: 1px solid rgba(6, 58, 105, 0.12);
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(24, 52, 78, 0.16);
  grid-template-columns: minmax(430px, 0.88fr) minmax(0, 1.12fr);
}

.auth-form-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: clamp(32px, 4.2vw, 62px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  flex-direction: column;
}

.auth-brand,
.auth-form-wrap {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  color: var(--auth-navy);
  text-decoration: none;
}

.auth-brand img {
  display: block;
  width: 158px;
  height: auto;
}

.auth-brand span {
  padding-left: 16px;
  border-left: 1px solid #c9d4df;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
}

.auth-form-wrap {
  width: min(100%, 390px);
  margin: auto;
  padding: 42px 0 18px;
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--auth-blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-eyebrow::before {
  width: 23px;
  height: 2px;
  background: var(--auth-gold);
  content: "";
}

.auth-heading h1 {
  margin: 0 0 11px;
  color: var(--auth-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.auth-heading > p:last-child {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.auth-alerts:empty {
  display: none;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-alert strong {
  display: block;
  margin-bottom: 4px;
}

.auth-alert ul {
  margin: 0;
  padding-left: 18px;
}

.auth-alert-error {
  border-color: #f2c6c6;
  color: #932c2c;
  background: #fff5f5;
}

.auth-alert-success {
  border-color: #b9dfcd;
  color: #17633f;
  background: #f1fbf6;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field > label {
  display: block;
  margin-bottom: 8px;
  color: #344658;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cad6e1;
  border-radius: 9px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  font-size: 0.86rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-input::placeholder {
  color: #98a4b2;
}

.auth-input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(14, 115, 191, 0.11);
}

.auth-password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  padding: 6px 4px;
  border: 0;
  color: var(--auth-blue);
  background: transparent;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--auth-navy);
}

.captcha-panel {
  display: grid;
  align-items: center;
  padding: 9px;
  border: 1px solid #d5e0e9;
  border-left: 3px solid var(--auth-gold);
  border-radius: 9px;
  background: #f6f9fb;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 132px;
}

.captcha-question {
  display: flex;
  padding-left: 5px;
  flex-direction: column;
}

.captcha-question span {
  margin-bottom: 2px;
  color: var(--auth-muted);
  font-size: 0.68rem;
}

.captcha-question strong {
  color: var(--auth-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.captcha-answer {
  min-height: 46px;
  text-align: center;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--auth-navy);
  border-radius: 9px;
  color: #fff;
  background: var(--auth-navy);
  box-shadow: 0 10px 22px rgba(6, 58, 105, 0.16);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.auth-submit span:last-child {
  font-size: 1.08rem;
  transition: transform 160ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  border-color: var(--auth-blue);
  background: var(--auth-blue);
  box-shadow: 0 12px 26px rgba(14, 115, 191, 0.22);
}

.auth-submit:hover span:last-child {
  transform: translateX(3px);
}

.auth-showcase {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #082f54;
}

.auth-slides,
.auth-slide {
  position: absolute;
  inset: 0;
}

.auth-slide {
  z-index: 1;
  display: block;
  overflow: hidden;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transition: opacity 500ms ease;
}

.auth-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.auth-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s ease;
}

.auth-slide.is-active .auth-slide-image {
  transform: scale(1.035);
}

.auth-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 28, 51, 0.22) 0%, rgba(3, 28, 51, 0.25) 38%, rgba(3, 28, 51, 0.94) 100%),
    linear-gradient(90deg, rgba(4, 48, 84, 0.2), transparent 75%);
}

.auth-slide-content {
  position: absolute;
  z-index: 2;
  right: 48px;
  bottom: 78px;
  left: 48px;
  display: flex;
  max-width: 510px;
  align-items: flex-start;
  flex-direction: column;
}

.auth-slide-kicker {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  color: var(--auth-yellow);
  background: rgba(4, 35, 61, 0.44);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-slide-content > strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.auth-slide-description {
  max-width: 460px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.65;
}

.auth-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(249, 202, 36, 0.72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-slide-link > span {
  color: var(--auth-yellow);
  font-size: 0.98rem;
  transition: transform 160ms ease;
}

.auth-slide:hover .auth-slide-link > span {
  transform: translate(2px, -2px);
}

.auth-slider-controls {
  position: absolute;
  z-index: 5;
  right: 38px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.auth-slide-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-slider-toggle {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 28, 51, 0.42);
  font-size: 0.58rem;
  cursor: pointer;
  place-items: center;
}

.auth-slider-toggle:hover,
.auth-slider-toggle.is-paused {
  border-color: var(--auth-yellow);
  color: var(--auth-navy);
  background: var(--auth-yellow);
}

.auth-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-slider-dots button {
  width: 16px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.auth-slider-dots button.is-active {
  width: 30px;
  background: var(--auth-yellow);
}

.auth-slider-dots button:focus-visible,
.auth-slider-toggle:focus-visible,
.password-toggle:focus-visible,
.auth-submit:focus-visible,
.auth-brand:focus-visible,
.auth-slide:focus-visible {
  outline: 3px solid var(--auth-yellow);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .auth-page {
    padding: 24px;
  }

  .auth-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    padding: 38px clamp(30px, 8vw, 76px);
  }

  .auth-form-wrap {
    width: min(100%, 500px);
    padding-top: 46px;
  }

  .auth-showcase {
    min-height: 440px;
  }
}

@media (max-width: 600px) {
  .auth-page {
    display: block;
    padding: 0;
    background: #fff;
  }

  .auth-shell {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-form-panel {
    padding: 28px 22px 36px;
  }

  .auth-brand {
    gap: 11px;
  }

  .auth-brand img {
    width: 128px;
  }

  .auth-brand span {
    padding-left: 11px;
    font-size: 0.58rem;
  }

  .auth-form-wrap {
    padding-top: 44px;
  }

  .auth-heading h1 {
    font-size: 1.9rem;
  }

  .captcha-panel {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .auth-showcase {
    min-height: 400px;
  }

  .auth-slide-content {
    right: 24px;
    bottom: 70px;
    left: 24px;
  }

  .auth-slide-content > strong {
    font-size: 1.75rem;
  }

  .auth-slider-controls {
    right: 24px;
    bottom: 27px;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .auth-page {
    padding: 22px;
  }

  .auth-shell {
    min-height: calc(100svh - 44px);
  }

  .auth-form-panel {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .auth-form-wrap {
    padding-top: 26px;
    padding-bottom: 0;
  }

  .auth-heading {
    margin-bottom: 20px;
  }

  .auth-field {
    margin-bottom: 14px;
  }

  .auth-submit {
    margin-top: 18px;
  }
}

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

  .auth-slide.is-active .auth-slide-image {
    transform: none;
  }
}
