/* Login page only. The footer intentionally lives in index.css. */

.login-page {
  --login-navy: #073e70;
  --login-blue: #0875c8;
  --login-cyan: #0ea9dc;
  --login-ink: #07344f;
  --login-muted: #6a7e8d;
  --login-line: #dfe9f0;
  --login-soft: #f4f8fb;
  --login-success: #169c5b;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
  color: var(--login-ink);
  overflow-x: hidden;
}

.login-page-main {
  min-height: 760px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.secure-entry {
  -webkit-text-security: disc;
  text-security: disc;
}

.login-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}

.login-topbar-inner {
  width: min(1460px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.login-logo img {
  display: block;
  width: auto;
  height: 45px;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
}

.login-topbar-action {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.login-topbar-action a {
  min-height: 40px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.login-topbar-action a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.login-hero {
  position: relative;
  flex: 1 0 auto;
  overflow: hidden;
  min-height: 760px;
  padding: 150px 32px 92px;
  color: #fff;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(255, 255, 255, 0.06),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 22%,
      rgba(14, 169, 220, 0.24),
      transparent 26%
    ),
    linear-gradient(115deg, #073e70 0%, #0b5b9f 52%, #0876c9 100%);
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.34) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}

.login-hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: -340px;
  bottom: -420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.025),
    0 0 0 160px rgba(255, 255, 255, 0.018);
}

.login-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.login-hero-glow-one {
  width: 420px;
  height: 420px;
  right: 4%;
  top: 6%;
  background: rgba(14, 169, 220, 0.1);
}

.login-hero-glow-two {
  width: 280px;
  height: 280px;
  left: 33%;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.04);
}

.login-container {
  position: relative;
  z-index: 2;
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.78fr);
  gap: 100px;
  align-items: center;
}

.login-intro {
  max-width: 650px;
  padding: 28px 0;
}

.login-eyebrow,
.login-card-kicker {
  display: inline-block;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}

.login-eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.66);
}

.login-intro h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.login-intro-copy {
  max-width: 575px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.login-benefits {
  margin-top: 38px;
  display: grid;
  gap: 13px;
  max-width: 590px;
}

.login-benefit {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.benefit-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.login-benefit strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.login-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  line-height: 1.5;
}

.login-home-link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.login-home-link:hover {
  color: #fff;
  transform: translateX(-2px);
}

.login-card-wrap {
  display: flex;
  justify-content: flex-end;
}

.login-card {
  width: 100%;
  max-width: 510px;
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.985);
  color: var(--login-ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 34px 84px rgba(3, 40, 73, 0.24),
    0 8px 24px rgba(3, 40, 73, 0.12);
}

.login-card-head {
  margin-bottom: 25px;
}

.login-card-kicker {
  margin-bottom: 10px;
  color: var(--login-cyan);
}

.login-card-head h2 {
  margin: 0;
  color: #083858;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.login-card-head p {
  margin-top: 9px;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.55;
}

.status-message {
  margin: -4px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.status-error {
  color: #a6282b;
  background: #fff1f1;
  border: 1px solid #f5cfd0;
}

.status-success {
  color: #087442;
  background: #eefbf4;
  border: 1px solid #caeedb;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-group label {
  color: #21495f;
  font-size: 12px;
  font-weight: 650;
}

.phone-field,
.input-wrap {
  position: relative;
}

.phone-field {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.phone-field:focus-within,
.input-wrap:focus-within input {
  border-color: #38aede;
  box-shadow: 0 0 0 4px rgba(14, 169, 220, 0.1);
}

.country-picker {
  height: 100%;
  min-width: 132px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--login-line);
  border-radius: 12px 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f7fafc;
  color: var(--login-ink);
  cursor: pointer;
  flex-shrink: 0;
}

.country-picker:hover {
  background: #f1f7fa;
}

.country-flag-wrap,
.opt-flag-wrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #edf3f6;
  flex-shrink: 0;
}

.country-flag-img,
.opt-flag-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.country-code,
.country-dial {
  color: #183e55;
  font-size: 12px;
  font-weight: 650;
}

.country-chevron {
  margin-left: auto;
  color: #6d8391;
  font-size: 12px;
}

.phone-field > input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #173c52;
  font-size: 14px;
}

.phone-field > input::placeholder,
.input-wrap input::placeholder {
  color: #9aabb5;
}

.country-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--login-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(12, 60, 91, 0.16);
}

.country-dropdown.show {
  display: block;
}

.country-option {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #173c52;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option.active {
  background: #eff8fc;
}

.opt-name,
.opt-dial {
  font-size: 12px;
}

.opt-name {
  font-weight: 600;
}

.opt-dial {
  color: #7a8d99;
  font-weight: 600;
}

.input-wrap {
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  width: 19px;
  height: 19px;
  display: inline-flex;
  color: #718996;
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 15px 0 46px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #173c52;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Cloudflare Turnstile — visual styling only; behavior stays in login.html. */
.turnstile-wrap {
  width: 100%;
  margin-top: 1px;
  padding: 12px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #f7fafc;
  display: grid;
  justify-items: stretch;
  gap: 8px;
  overflow: hidden;
}

#turnstileWidget {
  width: 100%;
}

#turnstileWidget iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.turnstile-status {
  color: #718996;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.turnstile-status.success {
  color: #148453;
}

.turnstile-status.error {
  color: #aa3438;
}

.login-submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 3px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(100deg, #0875c8 0%, #0ea9dc 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(8, 117, 200, 0.19);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(8, 117, 200, 0.24);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.success-btn {
  background: linear-gradient(100deg, #149858, #1bb66c) !important;
  box-shadow: 0 12px 24px rgba(20, 152, 88, 0.2) !important;
}

.register-link {
  margin-top: 2px;
  color: #7b8d99;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.register-link a {
  margin-left: 4px;
  color: #0875c8;
  font-weight: 700;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

.login-security-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8597a2;
  font-size: 11px;
}

.security-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bbf78;
  box-shadow: 0 0 0 4px rgba(43, 191, 120, 0.1);
}

@media (max-width: 1050px) {
  .login-page-main {
    min-height: auto;
  }

  .login-hero {
    min-height: auto;
    padding: 132px 24px 72px;
  }

  .login-container {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 720px;
  }

  .login-intro {
    max-width: none;
    padding-bottom: 0;
  }

  .login-card-wrap {
    justify-content: flex-start;
  }

  .login-card {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .login-topbar-inner {
    width: calc(100% - 36px);
    min-height: 82px;
  }

  .login-logo img {
    height: 40px;
    max-width: 170px;
  }

  .login-intro h1 {
    font-size: 48px;
  }

  .login-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .login-topbar-inner {
    width: calc(100% - 26px);
    min-height: 76px;
    gap: 12px;
  }

  .login-logo img {
    height: 36px;
    max-width: 142px;
  }

  .login-topbar-action {
    gap: 8px;
  }

  .login-topbar-action span {
    display: none;
  }

  .login-topbar-action a {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  .login-hero {
    padding: 112px 14px 48px;
  }

  .login-container {
    gap: 0;
  }

  /* Mobile: keep registration focused on the form only. */
  .login-intro {
    display: none;
  }

  .login-eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .login-intro h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .login-intro-copy {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  .login-benefits {
    margin-top: 24px;
    gap: 9px;
  }

  .login-benefit {
    grid-template-columns: 32px 1fr;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  .benefit-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .login-benefit strong {
    font-size: 13px;
  }

  .login-benefit p {
    font-size: 11px;
  }

  .login-home-link {
    display: none;
  }

  .login-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .login-card-head {
    margin-bottom: 20px;
  }

  .login-card-head h2 {
    font-size: 27px;
  }

  .login-card-head p {
    font-size: 12px;
  }

  .phone-field,
  .input-wrap input,
  .login-submit-btn {
    height: 50px;
  }

  .country-picker {
    min-width: 116px;
    padding: 0 9px;
    gap: 5px;
  }

  .country-flag-wrap,
  .opt-flag-wrap {
    width: 20px;
    height: 20px;
  }

  .country-code,
  .country-dial {
    font-size: 11px;
  }

  .phone-field > input,
  .input-wrap input {
    font-size: 16px;
  }

  .input-wrap input {
    padding-left: 43px;
  }

  .input-icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }

  .login-security-note {
    margin-top: 18px;
  }
}

@media (max-width: 600px) {
  .turnstile-wrap {
    padding: 10px;
    border-radius: 11px;
  }

  .turnstile-status {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .login-hero {
    padding-inline: 10px;
  }

  .login-intro h1 {
    font-size: 32px;
  }

  .login-card {
    padding: 22px 14px;
  }

  .country-picker {
    min-width: 108px;
    padding-inline: 7px;
  }
}
