.platform-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.password-forgot-link { display: block; width: fit-content; margin: 10px 0 0 auto; font-size: 13px; color: var(--ds-primary, #2563eb); text-underline-offset: 4px; }
.password-forgot-link:hover,.password-back-link:hover { text-decoration: underline; }
.password-page .platform-auth-card { width: min(480px,100%); }
.password-page .platform-auth-head { align-items: center; margin-bottom: 26px; }
.password-page .platform-auth-head .platform-brand-title { margin: 0; }
.password-page .platform-auth-card h1 { font-size: 25px; line-height: 1.25; }
.password-page .platform-auth-actions .btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.4; }
.password-page .platform-auth-actions .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.password-page .password-eyebrow { margin-bottom: 8px; font-size: 13px; color: var(--ds-primary, #2563eb); }
.password-page #password-user { overflow-wrap: anywhere; }
.password-page #password-message { font-size: 14px; line-height: 1.6; }
.password-page #password-message:empty { display: none; }
.password-page #password-message.password-message-error { color: var(--ds-danger); }
.password-page #password-policy,.password-page .password-session-note { margin: 12px 0; font-size: 13px; line-height: 1.5; }
.password-back-link { display: inline-block; margin-top: 8px; color: var(--ds-primary, #2563eb); font-size: 14px; text-underline-offset: 4px; }
.password-page [hidden] { display: none !important; }
@media (max-width: 480px) { .password-page .platform-auth-shell { padding: 18px; } .password-page .platform-auth-card { padding: 24px 20px; } }

.platform-auth-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgb(15 23 42 / 16%);
  padding: 24px 22px;
}

.platform-auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.platform-auth-head .platform-brand-title {
  margin: 0;
  color: var(--ds-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.platform-auth-card .platform-auth-head .platform-brand-tagline {
  margin: 2px 0 0;
  color: var(--ds-text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.platform-auth-card .language-switch {
  flex: none;
  background: #eef2f7;
}

.platform-auth-card .language-switch-button {
  color: #64748b;
}

.platform-auth-card .language-switch-button.active {
  color: #0f172a;
}

.platform-auth-card h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.platform-auth-card p {
  margin: 9px 0 18px;
  color: var(--ds-text-muted);
}

.platform-field {
  margin-top: 14px;
}

.platform-field label {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

.platform-field input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
}

.platform-field input:focus {
  outline: 2px solid #bfdbfe;
  border-color: #93c5fd;
  background: #ffffff;
}

.platform-auth-error {
  margin-top: 10px;
  color: var(--ds-danger);
  font-size: 13px;
  min-height: 18px;
}

.platform-auth-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.platform-auth-actions .btn {
  min-height: 42px;
  min-width: 120px;
}

.platform-turnstile {
  width: 100%;
  min-height: 65px;
  margin-top: 14px;
}

.platform-turnstile-local {
  min-height: 65px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ds-text-muted);
  font-size: 13px;
}

.platform-auth-secondary {
  text-align: center;
  font-size: 13px;
}

.platform-consents {
  margin: 18px 0 14px;
  padding: 0;
  border: 0;
}

.platform-consents legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.platform-consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 9px 0;
  color: var(--ds-text);
  line-height: 1.4;
}

.platform-consent-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.platform-consent-option a { color: var(--ds-blue); font-weight: 650; }

.platform-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 12px;
}

.platform-legal-links .is-unavailable {
  color: var(--ds-text-muted);
  cursor: help;
}

.platform-auth-secondary a {
  color: var(--ds-blue);
  font-weight: 650;
  text-decoration: none;
}

.platform-auth-card-wide {
  width: min(540px, 100%);
}

.platform-registration-card {
  padding: 28px 24px;
}

.platform-registration-card .platform-auth-head {
  margin-bottom: 24px;
}

.platform-registration-card h1 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.platform-registration-card > #register-subtitle,
.platform-registration-card > #register-unavailable {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.platform-registration-card > .platform-auth-secondary {
  margin: 24px 0 0;
  line-height: 1.5;
}

.platform-registration-card > .platform-legal-links[hidden] {
  display: none;
}

.platform-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.platform-local-access {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ds-line);
}

.platform-local-access h2 {
  margin: 0;
  font-size: 14px;
}

.platform-local-access p {
  margin: 6px 0 12px;
  font-size: 12px;
}

.platform-local-access-actions {
  display: grid;
  gap: 8px;
}

.platform-local-access .btn {
  width: 100%;
  text-align: left;
}

@media (max-width: 520px) {
  .platform-auth-shell {
    padding: 14px;
    align-items: start;
  }

  .platform-auth-card {
    margin-top: 8vh;
    padding: 20px 18px;
  }

  .platform-auth-head {
    align-items: center;
  }

  .platform-auth-card h1 {
    font-size: 25px;
  }

  .platform-registration-card {
    padding: 24px 20px;
  }

  .platform-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
