/* Pantallas de cuenta SDSYP: misma paleta institucional que el acceso. */
:root {
  --sdsyp-account-ink: #172033;
  --sdsyp-account-muted: #64748b;
  --sdsyp-account-line: #dbe4ef;
  --sdsyp-account-navy: #062f53;
  --sdsyp-account-navy-hover: #0b436e;
  --sdsyp-account-soft: #eaf2f7;
}

body.sdsyp-account-page,
body.sdsyp-account-page *,
body.sdsyp-account-page *::before,
body.sdsyp-account-page *::after { box-sizing: border-box; }

body.sdsyp-account-page {
  min-height: 100vh;
  margin: 0;
  color: var(--sdsyp-account-ink);
  background: linear-gradient(135deg, #eef4f8 0%, #f8fafc 52%, #e6eef5 100%) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}
body.sdsyp-account-page main { max-width: 620px; margin: 0 auto; padding: clamp(30px, 7vw, 70px) 20px; }
body.sdsyp-account-page section {
  background: #fff;
  border: 1px solid var(--sdsyp-account-line);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 34px);
  box-shadow: 0 10px 30px rgba(23, 32, 51, .08);
}
body.sdsyp-account-page h1 { margin-top: 0; color: var(--sdsyp-account-ink); font-size: clamp(1.45rem, 4vw, 1.75rem); }
body.sdsyp-account-page label { color: var(--sdsyp-account-ink); }
body.sdsyp-account-page input {
  width: 100%;
  padding: 12px 13px;
  border-color: #cbd8e5;
  border-style: solid;
  border-width: 1px;
  border-radius: 9px;
  background: #fbfdff;
  color: var(--sdsyp-account-ink);
  font: inherit;
}
body.sdsyp-account-page input:focus { outline: 3px solid rgba(61, 114, 150, .18); border-color: var(--sdsyp-account-navy-hover); }
body.sdsyp-account-page button,
body.sdsyp-account-page section > a:not(.back) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--sdsyp-account-navy) !important;
  border: 1px solid var(--sdsyp-account-navy);
  border-radius: 9px;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
body.sdsyp-account-page button:hover,
body.sdsyp-account-page section > a:not(.back):hover { background: var(--sdsyp-account-navy-hover) !important; }
body.sdsyp-account-page .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: #edf2f7 !important;
  border: 1px solid #d9e3eb;
  border-radius: 9px;
  color: var(--sdsyp-account-ink) !important;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
body.sdsyp-account-page .status { background: var(--sdsyp-account-soft) !important; color: var(--sdsyp-account-ink); }
body.sdsyp-account-page .message.success,
body.sdsyp-account-page .success { background: #ecfdf3; color: #067647; }
body.sdsyp-account-page .message.error,
body.sdsyp-account-page .error { background: #fef3f2; color: #b42318; }
body.sdsyp-account-page .account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--sdsyp-account-navy);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.sdsyp-account-page .account-brand img { width: 46px; height: 46px; object-fit: contain; }
body.sdsyp-account-page .account-login-header { margin-bottom: 28px; text-align: center; }
body.sdsyp-account-page .account-login-logo {
  display: block;
  width: min(285px, 88%);
  height: auto;
  max-height: 128px;
  margin: 0 auto 26px;
  object-fit: contain;
}
body.sdsyp-account-page .account-login-header h1 { color: var(--sdsyp-account-navy); font-size: 1.55rem; font-weight: 700; }
body.sdsyp-account-page .account-login-header p { margin: -4px 0 0; color: var(--sdsyp-account-muted); font-size: .92rem; }
body.sdsyp-account-page .account-description { margin: -8px 0 24px; color: var(--sdsyp-account-muted); }
body.sdsyp-account-page .field { margin: 18px 0; }
body.sdsyp-account-page .field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 700; }
body.sdsyp-account-page .password-field { position: relative; }
body.sdsyp-account-page .password-field input { padding: 12px 46px 12px 13px; }
body.sdsyp-account-page .password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  color: var(--sdsyp-account-navy) !important;
  background: transparent !important;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
}
body.sdsyp-account-page .password-toggle:hover { background: var(--sdsyp-account-soft) !important; }
body.sdsyp-account-page .form-help { margin: -5px 0 18px; color: var(--sdsyp-account-muted); font-size: .82rem; }
body.sdsyp-account-page .account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
body.sdsyp-account-page .account-actions button,
body.sdsyp-account-page .account-actions a { margin: 0; }
@media (max-width: 480px) {
  body.sdsyp-account-page .account-actions { display: grid; }
  body.sdsyp-account-page .account-actions button,
  body.sdsyp-account-page .account-actions a { width: 100%; text-align: center; }
  body.sdsyp-account-page .account-login-logo { width: min(250px, 94%); margin-bottom: 22px; }
}
