.login-page {
  --ink: #10231f;
  --text: #1a2e29;
  --muted: #3f5a53;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --primary: #0b7a70;
  --primary-hover: #086059;
  --primary-soft: rgba(11, 122, 112, 0.14);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  color: var(--text);
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050608;
}
.login-bg .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.05) contrast(1.12) brightness(0.78);
  z-index: 0;
}
.login-bg .bg-video.is-active { z-index: 1; }
.login-bg #bg-tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  z-index: 1;
}
.login-bg .bg-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 75% 60% at 50% 30%, rgba(0, 0, 0, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.28) 0%, rgba(5, 6, 8, 0.58) 100%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(11, 122, 112, 0.14);
  background: rgba(255, 252, 247, 0.72);
  box-shadow:
    0 30px 80px rgba(10, 40, 34, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(18px);
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-hero {
  padding: 48px 40px;
  background:
    linear-gradient(145deg, rgba(11, 122, 112, 0.18), rgba(245, 158, 11, 0.08) 48%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(220, 242, 235, 0.75));
  border-right: 1px solid rgba(11, 122, 112, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #086059;
}

.login-page .brand,
.login-hero .brand {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #064e48;
  color: #064e48;
  filter: none;
  animation: none;
}

.login-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  color: #10231f;
  max-width: 14em;
}

.login-hero-text {
  margin: 0 0 26px;
  color: #2a403a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  max-width: 30em;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points li {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #064e48;
  background: #ffffff;
  border: 1px solid rgba(11, 122, 112, 0.22);
}

.login-card {
  padding: 44px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card-head {
  margin-bottom: 28px;
}

.login-card-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #10231f;
}

.login-card-head p {
  margin: 0;
  color: #3f5a53;
  font-size: 15px;
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.login-form .field label {
  font-size: 14px;
  font-weight: 700;
  color: #10231f;
}

.login-form .field input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #10231f;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 31, 0.22);
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-form .field input::placeholder {
  color: #5b736c;
  opacity: 1;
}

.login-form .field input:hover {
  border-color: rgba(11, 122, 112, 0.35);
}

.login-form .field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #3f5a53;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover,
.password-toggle:focus {
  color: #064e48;
  background: rgba(11, 122, 112, 0.1);
  outline: none;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
  align-items: stretch;
}

.captcha-btn {
  border: 1px solid rgba(11, 122, 112, 0.16);
  border-radius: 12px;
  padding: 0;
  background: #f4faf8;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  min-height: 48px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.captcha-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 122, 112, 0.3);
  box-shadow: 0 10px 20px rgba(12, 48, 40, 0.1);
}

.captcha-btn img {
  display: block;
  width: 132px;
  height: 48px;
  object-fit: cover;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fde8e6;
  color: #9f1d14;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid rgba(159, 29, 20, 0.28);
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    border-right: none;
    border-bottom: 1px solid rgba(11, 122, 112, 0.1);
    padding: 28px 24px 24px;
  }

  .login-hero h1 {
    max-width: none;
  }

  .login-card {
    padding: 28px 22px 32px;
  }

  .captcha-row {
    grid-template-columns: 1fr 120px;
  }

  .captcha-btn img {
    width: 120px;
  }
}
