.login-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.08), rgba(255, 249, 240, 0.08)),
    url("./assets/login/login-background.webp") center / cover no-repeat;
}

.login-page.is-password-focused,
.login-page:has(input[name="password"]:focus) {
  background-image:
    linear-gradient(180deg, rgba(255, 249, 240, 0.08), rgba(255, 249, 240, 0.08)),
    url("./assets/login/login-background-password-aligned-v16.webp");
}

.login-page::before,
.login-page::after {
  display: none !important;
}

.login-shell {
  width: min(100%, 1680px);
  min-height: 100vh;
}

.login-header {
  position: relative;
  top: auto;
}

@media (min-width: 681px) {
  .login-header {
    width: min(calc(100% - (var(--header-gutter) * 2)), 1372px);
    margin: 0 auto;
  }
}

.login-header::before {
  display: none;
}

.login-action.is-current {
  pointer-events: none;
}

.login-main {
  min-height: calc(100vh - 150px);
}

.login-stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - 150px);
  padding: clamp(20px, 3vw, 48px) clamp(60px, 9vw, 150px) clamp(80px, 8vw, 120px);
}

.login-panel {
  --login-title-gap: clamp(38px, 2.6vw, 48px);
  width: min(100%, 548px);
  padding: var(--login-title-gap) clamp(34px, 3vw, 44px) clamp(30px, 2.6vw, 38px);
  border: 1px solid rgba(255, 214, 180, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 54px rgba(104, 70, 30, 0.08);
  backdrop-filter: blur(20px) saturate(142%);
  text-align: center;
}

.login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 2.2vw, 40px);
  font-weight: 900;
  line-height: 1.12;
}

.login-wordmark {
  display: block;
  width: clamp(131px, 10.08vw, 170px);
  height: auto;
  transform: translateY(-1px);
}

.login-subtitle {
  margin: 16px 0 0;
  color: rgba(90, 51, 15, 0.38);
  font-size: clamp(16px, 1.24vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 16px;
  width: min(100%, 372px);
  margin: calc(var(--login-title-gap) - 18px) auto 0;
}

.login-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.login-field span {
  color: rgba(90, 51, 15, 0.82);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.login-field input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 198, 150, 0.88);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(104, 70, 30, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.login-field input::placeholder {
  color: rgba(90, 51, 15, 0.34);
  font-weight: 600;
}

.login-field input:focus {
  border-color: rgba(255, 154, 52, 0.95);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 154, 52, 0.14),
    0 12px 28px rgba(104, 70, 30, 0.08);
}

.login-account-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.login-account-links a {
  color: #2478d8;
  text-decoration: none;
  text-underline-offset: 4px;
}

.login-account-links a:hover,
.login-account-links a:focus-visible {
  color: #125fb5;
  text-decoration: underline;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb342, var(--accent));
  box-shadow:
    0 16px 30px rgba(255, 154, 52, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.login-submit:hover {
  box-shadow:
    0 18px 34px rgba(255, 154, 52, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.login-submit:focus-visible {
  outline: 4px solid rgba(255, 154, 52, 0.22);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .login-stage {
    justify-content: center;
    padding-inline: 28px;
  }
}

@media (max-width: 680px) {
  .login-shell {
    min-height: 100vh;
  }

  .login-main,
  .login-stage {
    min-height: calc(100vh - 124px);
  }

  .login-stage {
    align-items: flex-start;
    padding: 8px 16px 40px;
  }

  .login-panel {
    --login-title-gap: 24px;
    width: 100%;
    padding: 28px 20px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.76);
  }

  .login-title {
    flex-direction: column;
    gap: 6px;
    font-size: clamp(26px, 7vw, 32px);
  }

  .login-wordmark {
    width: min(45vw, 168px);
    transform: none;
  }

  .login-form {
    width: min(100%, 320px);
    gap: 14px;
  }

  .login-field input {
    height: 52px;
    border-radius: 14px;
    font-size: 15px;
  }

  .login-account-links {
    gap: 12px;
    font-size: 14px;
  }

  .login-submit {
    min-height: 54px;
    font-size: 17px;
  }
}
