/* Account entry points fit the existing navigation and use its current theme. */
.auth-nav { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.auth-nav__link, .auth-nav__logout { font-size: 13px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.auth-nav__link:hover, .auth-nav__logout:hover { text-decoration: underline; text-underline-offset: 6px; }
.auth-nav__logout { opacity: .65; }
.mobile-nav__foot .auth-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.mobile-nav__foot .auth-nav > * { justify-content: center; }
@media (min-width: 1024px) and (max-width: 1180px) { .auth-nav { gap: 12px; } }

.account-main { min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 80px; background: #080e0c; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.04fr); align-items: center; gap: clamp(40px,7vw,110px); max-width: 1140px; margin: 0 auto; }
.auth-story { color: #f4f7f1; }
.auth-story h1 { font-size: clamp(38px,4.2vw,60px); line-height: 1.14; letter-spacing: -.035em; margin: 22px 0; }
.auth-story > p { max-width: 390px; color: #aab7ae; line-height: 1.8; }
.auth-steps { display: grid; gap: 0; margin: 40px 0; max-width: 380px; }
.auth-steps li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid #27332d; }
.auth-steps li > span { color: #c8f169; font-size: 12px; font-family: ui-monospace, monospace; }
.auth-steps strong { display: block; font-size: 15px; font-weight: 500; }
.auth-story__foot { font-size: 13px; color: #74887a; display: flex; align-items: center; gap: 9px; }
.auth-story__foot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c8f169; }
.auth-card { color: #17231e; background: #fbfcf9; border-radius: 22px; padding: clamp(26px,3.5vw,44px); box-shadow: 0 16px 60px #0003; }
.auth-card h2 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 8px; }
.auth-card__intro { color: #68766c; font-size: 14px; margin-bottom: 28px; line-height: 1.65; }
.auth-card fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.auth-card fieldset:disabled { opacity: .65; }
.auth-fields { display: grid; gap: 18px; }
.auth-field label, .auth-types legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.auth-field input { color: #17231e; background: #fff; width: 100%; min-width: 0; border: 1px solid #d6ded6; border-radius: 7px; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 15px; }
.auth-field input:focus { outline: 2px solid #345b46; outline-offset: 2px; }
.auth-field input[aria-invalid] { border-color: #a7352a; }
.auth-hint { display: block; font-size: 12px; color: #68766c; margin-top: 7px; line-height: 1.6; }
.auth-password { position: relative; }
.auth-password input { padding-right: 74px; }
.auth-password button { position: absolute; right: 5px; top: 5px; min-height: 38px; padding: 0 10px; font-size: 12px; color: #496351; }
.auth-password button:focus-visible { outline: 2px solid #345b46; outline-offset: 0; border-radius: 4px; }
.auth-types { display: grid; gap: 8px; }
.auth-types legend { margin-bottom: 12px; }
.auth-types__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.auth-type { position: relative; display: flex; min-width: 0; cursor: pointer; }
.auth-type input { position: absolute; z-index: 1; top: 50%; left: 12px; transform: translateY(-50%); margin: 0; width: 16px; height: 16px; accent-color: #244b34; }
.auth-type span { display: flex; align-items: center; width: 100%; min-width: 0; min-height: 72px; padding: 12px 10px 12px 38px; border: 1px solid #d6ded6; border-radius: 8px; color: #647168; font-size: 13px; line-height: 1.5; text-align: left; }
.auth-type input:checked + span { background: #edf5de; border-color: #456c3d; color: #23412a; }
.auth-type input:focus-visible + span { outline: 2px solid #244b34; outline-offset: 3px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 24px; min-height: 50px; background: #172f24; color: #f5ffe8; border-radius: 7px; font-size: 14px; font-weight: 600; transition: background .2s; }
.auth-submit:hover { background: #294c37; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-submit:focus-visible { outline: 2px solid #345b46; outline-offset: 3px; }
.auth-switch { text-align: center; border-top: 1px solid #dfe5dc; padding-top: 22px; margin-top: 24px; color: #68766c; font-size: 13px; }
.auth-switch a { font-weight: 600; color: #254a32; text-decoration: underline; text-underline-offset: 3px; margin-left: 5px; }
.auth-status { border-left: 3px solid #ac442d; background: #fff1eb; color: #8d2d1e; font-size: 13px; line-height: 1.6; padding: 12px 14px; margin: 0 0 20px; }
.auth-status:focus { outline: 2px solid #ac442d; outline-offset: 2px; }
.auth-retry { color: inherit; text-decoration: underline; margin-bottom: 22px; }
.auth-card [hidden], .account-main [hidden] { display: none !important; }
.account-shell { max-width: 1000px; margin: auto; }
.account-heading { color: #fff; margin: 0 0 36px; }
.account-heading h1 { font-size: clamp(28px,4vw,45px); margin-top: 16px; overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.account-details { margin-top: 26px; }
.account-details div { padding: 16px 0; border-top: 1px solid #dfe5dc; }
.account-details dt { color: #748173; font-size: 12px; margin-bottom: 6px; }
.account-details dd { font-size: 15px; overflow-wrap: anywhere; }
.account-next { background: #c8f169; color: #183022; border-radius: 22px; padding: 40px; }
.account-next h2 { font-size: 28px; line-height: 1.4; margin: 30px 0 18px; }
.account-next p { line-height: 1.8; color: #466038; margin-bottom: 28px; }
.account-next > a { display: flex; justify-content: center; padding: 14px; border-radius: 7px; background: #193226; color: white; font-size: 14px; }
.account-next .account-next__secondary { margin-top: 12px; background: transparent; color: #193226; }
.account-loading { color: #b8c5b7; padding: 60px 0; }
@media (max-width: 767px) {
  .account-main { padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; }
  .auth-layout, .account-grid { grid-template-columns: 1fr; gap: 28px; }
  .auth-story h1 { font-size: 34px; margin: 14px 0; }
  .auth-story > p { font-size: 14px; max-width: none; }
  .auth-steps, .auth-story__foot { display: none; }
  .auth-card { border-radius: 14px; padding: 24px; }
  .auth-card h2 { font-size: 25px; }
  .auth-types__grid { grid-template-columns: 1fr; gap: 8px; }
  .auth-type span { min-height: 48px; padding-left: 40px; font-size: 13px; }
  .auth-type input { left: 14px; }
  .account-next { padding: 28px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .auth-types__grid { grid-template-columns: 1fr; }
  .auth-type span { min-height: 48px; }
}
