/* Shared design system for all locally owned Identity pages. */
.account-body { background: #f5f7f8; color: #243d49; }
.account-header { max-width: 1320px; margin: auto; min-height: 88px; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-header img { width: 180px; height: auto; }
.account-back { color: #536773; text-decoration: none; font-size: 14px; font-weight: 500; }
.account-back:hover { color: #326b8b; }
.account-shell { max-width: 1180px; margin: 28px auto 56px; padding: 0 32px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 72px; }
.account-story { position: sticky; top: 48px; padding: 48px 0; }
.account-kicker { display: block; color: #48788c; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 20px; }
.account-story h2 { font-size: clamp(32px, 3.5vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; margin-bottom: 22px; }
.account-story > p { font-size: 17px; color: #5c707a; line-height: 1.7; max-width: 360px; }
.account-benefits { list-style: none; padding: 24px 0 0; margin: 0; display: grid; gap: 22px; }
.account-benefits li { display: flex; align-items: start; gap: 14px; }
.account-benefit-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; background: #e4eef3; color: #326b8b; border-radius: 10px; font-size: 17px; }
.account-benefits strong { display: block; font-size: 14px; font-weight: 600; }
.account-benefits small { display: block; color: #697b83; font-size: 13px; margin-top: 3px; }
.account-story-note { border-top: 1px solid #dbe3e7; padding-top: 22px; margin-top: 36px; font-size: 12px !important; }
.account-card { min-width: 0; background: #fff; border: 1px solid #e1e7ea; border-radius: 16px; padding: 40px; box-shadow: 0 12px 40px #243d4906; }
.account-card h1 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 12px; }
.account-card h2, .account-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.account-card h4 { font-size: 17px; font-weight: 600; }
.account-lead { color: #687983; font-size: 15px; line-height: 1.65; margin-bottom: 28px; }
.account-card a { color: #326b8b; text-underline-offset: 3px; }
.account-card .btn-primary { background: #326b8b; border-color: #326b8b; color: #fff; }
.account-card .btn-primary:hover { background: #264f67; border-color: #264f67; }
.account-card .btn { min-height: 46px; padding: 11px 18px; border-radius: 7px; font-size: 14px; white-space: normal; }
.account-card .btn-outline-secondary { color: #536773; border-color: #cbd7dd; }
.account-card .form-control, .account-card .form-select { min-height: 48px; border-radius: 7px; border-color: #cbd7dd; background-color: #fff; font-size: 16px; }
.account-card .form-label { font-size: 13px; font-weight: 600; color: #374f5b; margin-bottom: 7px; }
.account-card .form-check { display: flex; align-items: center; gap: 9px; padding-left: 0; }
.account-card .form-check-input { float: none; flex-shrink: 0; margin: 0; width: 18px; height: 18px; }
.account-card .form-check-label { padding: 10px 0; font-size: 14px; }
.account-card .text-danger { font-size: 13px; }
.account-card .field-validation-error { display: block; margin-top: 6px; }
.account-card .input-validation-error { border-color: #b64040; }
.account-card .validation-summary-errors { border: 1px solid #edcaca; background: #fff7f7; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }
.account-card .validation-summary-errors ul { margin: 0; padding-left: 16px; }
.account-card .alert { font-size: 14px; line-height: 1.6; border-radius: 8px; overflow-wrap: anywhere; }
.account-form-section { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.account-form-section legend { float: none; font-size: 14px; font-weight: 600; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #e5ebee; }
.account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.account-field-wide { grid-column: 1 / -1; }
.account-help { display: block; color: #697b83; font-size: 12px; line-height: 1.6; margin: 7px 0 0; }
.account-password { position: relative; }
.account-password input { padding-right: 70px; }
.account-password-toggle { position: absolute; right: 4px; top: 3px; border: 0; background: transparent; color: #326b8b; min-width: 58px; min-height: 42px; font-size: 12px; font-weight: 600; border-radius: 5px; }
.account-password-toggle:hover { background: #edf3f6; }
.account-form-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; }
.account-switch { border-top: 1px solid #e5ebee; margin: 24px 0 0; padding-top: 22px; text-align: center; color: #697b83; font-size: 14px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.account-result-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eaf2f6; color: #326b8b; margin-bottom: 24px; font-size: 24px; }
.account-footer { max-width: 1256px; margin: 0 auto; padding: 24px 32px; border-top: 1px solid #dfe6e9; display: flex; justify-content: space-between; gap: 16px; color: #72818a; font-size: 12px; }
.account-footer a { color: inherit; }
.account-shell-settings { display: block; max-width: 1244px; }
.account-shell-settings .account-card { padding: 36px; }
.account-settings-header { border-bottom: 1px solid #e5ebee; margin-bottom: 28px; padding-bottom: 24px; }
.account-settings-header .account-lead { margin: 0; }
.account-settings-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.account-settings-nav { gap: 5px; }
.account-settings-nav .nav-link { display: flex; align-items: center; min-height: 44px; padding: 12px 14px; border-radius: 7px; color: #596e79; font-size: 14px; }
.account-settings-nav .nav-link.active { background: #eaf2f6; color: #245d79; font-weight: 600; }
.account-settings-nav .nav-link:hover { background: #f1f5f7; }
.account-settings-content { min-width: 0; max-width: 680px; }
.account-settings-content > .row { margin: 0; }
.account-settings-content > .row > [class*="col-"] { width: 100%; padding: 0; }
.account-settings-content code { overflow-wrap: anywhere; }
.account-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px; background: #f4f7f9; border: 1px solid #dce5ea; border-radius: 8px; }
.account-recovery-codes code { font-size: 15px; }
.account-card :focus-visible, .account-header a:focus-visible, .account-footer a:focus-visible { outline: 3px solid #4a91b5; outline-offset: 3px; }
@media (max-width: 991.98px) {
  .account-shell { gap: 36px; padding: 0 24px; }
  .account-card { padding: 28px; }
  .account-settings-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767.98px) {
  .account-header { min-height: 76px; padding: 18px 20px; }
  .account-header img { width: 150px; }
  .account-back { font-size: 12px; }
  .account-shell { display: block; margin: 12px auto 32px; padding: 0 16px; max-width: 600px; }
  .account-story { display: none; }
  .account-card, .account-shell-settings .account-card { padding: 26px 22px; border-radius: 12px; }
  .account-card h1 { font-size: 27px; }
  .account-settings-grid { display: block; }
  .account-settings-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; border-bottom: 1px solid #e5ebee; padding-bottom: 20px; }
  .account-settings-nav .nav-link { font-size: 13px; padding: 10px; }
  .account-footer { padding: 20px; flex-wrap: wrap; }
}
@media (max-width: 399.98px) {
  .account-fields { grid-template-columns: 1fr; }
  .account-card, .account-shell-settings .account-card { padding: 24px 18px; }
  .account-form-options { align-items: start; flex-direction: column; gap: 0; }
}
