/* Shared account surfaces use the same palette and texture as the Nylon home. */
.community-stage { position: relative; min-height: calc(100vh - 190px); padding: 76px 0 96px; background: radial-gradient(ellipse at 12% 12%, rgba(76,216,232,.07), transparent 50%), var(--graphite-950); }
.community-stage::before { position: absolute; inset: 0; content: ""; background: url("images/nylon-knowledge-paths-v1.bbcd786a5e43.webp") 50% 0/cover no-repeat; opacity: .09; pointer-events: none; mask-image: linear-gradient(#000, transparent 90%); }
.community-stage > .shell { position: relative; }
.community-kicker { margin: 0 0 16px; color: var(--cyan); font: 650 11px/1.5 var(--mono); letter-spacing: .19em; }
.muted { color: #a9b5bf; }
.glass-card { border: 1px solid #2c3945; border-radius: 24px; background: rgba(17,25,34,.93); box-shadow: 0 16px 60px rgba(0,0,0,.16); }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,7vw,110px); align-items: start; max-width: 1200px; }
.login-intro { padding: 35px 0; }
.login-intro h1 { margin: 24px 0 30px; font: 500 clamp(46px,5vw,70px)/1.18 var(--serif); letter-spacing: -.035em; }
.community-lede { color: #b6c4ce; font-size: 18px; line-height: 1.85; }
.login-benefits { margin-top: 48px; }
.login-benefits p { display: grid; grid-template-columns: 36px 1fr; margin: 0 0 24px; gap: 2px 10px; }
.login-benefits span { grid-row: span 2; color: var(--cyan); font: 12px/1.8 var(--mono); }
.login-benefits strong { font-size: 14px; font-weight: 600; }
.login-benefits small { color: #94a4b1; font-size: 13px; }
.login-footnote { margin-top: 42px; font-size: 12px; line-height: 1.8; }
.login-card { padding: clamp(24px,3vw,38px); }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.card-heading .community-kicker { margin-bottom: 8px; }
.card-heading h2 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 7px rgba(183,229,82,.06); }
.login-tabs { display: flex; padding: 5px; margin-bottom: 30px; border: 1px solid #25313d; border-radius: 13px; background: #0a1017; }
.login-tabs a { flex: 1; padding: 11px 8px; color: #a3b1bd; text-align: center; border: 1px solid transparent; border-radius: 9px; font-size: 13px; text-decoration: none; }
.login-tabs a[aria-current] { color: #e2f6f8; background: #1a2833; border-color: #34505c; }
.community-form { display: grid; gap: 10px; }
.community-form label, .enrollment label { color: #c7d3dc; font-size: 13px; font-weight: 500; }
.community-form input:not([type="hidden"]), .setup-secret { min-width: 0; width: 100%; min-height: 51px; border: 1px solid #34434f; border-radius: 10px; padding: 12px 14px; background: #0b121a; color: #edf4f8; font: inherit; }
.community-form input::placeholder { color: #778997; font-size: 13px; }
.community-form input:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.captcha-field { display: grid; gap: 10px; margin: 4px 0 8px; }
.captcha-field .label-with-help { margin-top: 0; }
.captcha-field img { display: block; width: 160px; height: 50px; border: 1px solid #40515e; border-radius: 8px; background: #fff; }
.community-stage .primary-button, .help-dialog .primary-button { margin-top: 12px; color: #132007; min-height: 48px; font-size: 14px; }
.secondary-button, .danger-button, .quiet-button { min-height: 46px; padding: 10px 16px; border: 1px solid #3e515f; border-radius: 10px; color: #dbeaf3; background: #182630; cursor: pointer; font: 500 13px/1.5 var(--sans); }
.secondary-button:hover { border-color: var(--cyan); background: #213440; }
.quiet-button { padding-inline: 0; background: transparent; border: none; color: #a6b7c5; }
.danger-button { border-color: #784349; color: #ffb6b6; background: #352026; }
.field-note { margin: 0; color: #9caeba; font-size: 12px; line-height: 1.8; }
.community-stage .errorlist, .account-error { color: #ffaaaa; font-size: 13px; }
.account-error { padding: 14px; border: 1px solid #6e4245; border-radius: 10px; background: #382126; }
.login-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: #92a0ac; font-size: 11px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #2a3844; }
.label-with-help { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 12px; }
.help-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; background: none; border: none; color: #8bd1dc; font: 12px var(--sans); cursor: pointer; }
.help-trigger span { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid #628794; border-radius: 50%; font: 12px var(--mono); }
.login-help { display: flex; margin: 18px auto 0; }
.login-recovery { margin: 24px 0; font-size: 12px; color: #9caeba; line-height: 1.8; }
.login-recovery a { color: #97d6df; }
.login-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 24px; border-top: 1px solid #2b3843; }
.login-bottom a { color: #adbfcf; font-size: 12px; text-decoration: none; }
.help-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px 34px; border: 1px solid #41505c; border-radius: 22px; background: #121c26; color: #e7f0f5; box-shadow: 0 24px 100px #0008; }
.help-dialog::backdrop { background: #02080dbc; backdrop-filter: blur(8px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; }
.dialog-top p { margin: 0; }
.icon-button { width: 36px; height: 36px; border: 1px solid #3a4a56; border-radius: 50%; background: transparent; color: #d2e1e8; font-size: 23px; cursor: pointer; }
.help-dialog h2 { margin: 20px 0 14px; font-size: 25px; }
.help-dialog > p { font-size: 13px; }
.guide-steps { counter-reset: guide; list-style: none; padding: 0; margin: 26px 0; }
.guide-steps li { position: relative; padding-left: 42px; margin: 18px 0; counter-increment: guide; }
.guide-steps li::before { content: counter(guide,decimal-leading-zero); position: absolute; left: 0; top: 2px; color: var(--cyan); font: 12px var(--mono); }
.guide-steps strong { font-size: 14px; }
.guide-steps p { margin: 6px 0 0; color: #a5b6c3; font-size: 13px; line-height: 1.8; }
.help-dialog > .primary-button { width: 100%; }
.account-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 56px; max-width: 1200px; }
.account-sidebar h1 { margin: 0 0 30px; font: 500 38px/1.2 var(--serif); }
.account-sidebar nav { display: grid; gap: 8px; }
.account-sidebar nav a { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 10px; border: 1px solid transparent; color: #a8bac8; text-decoration: none; font-size: 14px; }
.account-sidebar nav a[aria-current] { background: #152832; border-color: #304d5b; color: #b4eff4; }
.account-sidebar nav span { font: 11px/2 var(--mono); color: #76919f; }
.account-content { display: grid; gap: 24px; min-width: 0; }
.profile-card, .security-card { padding: 32px; }
.account-name { margin: 0 0 8px; font-size: clamp(22px,3vw,32px); font-weight: 500; overflow-wrap: anywhere; }
.profile-card > p { font-size: 14px; }
.profile-status { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.status-pill { display: inline-block; padding: 6px 11px; border: 1px solid #456339; border-radius: 30px; background: #263721; color: #c2e69e; font-size: 11px; white-space: nowrap; }
.status-muted { border-color: #3e4d57; color: #a8bac6; background: #1e2a34; }
.account-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account-destination { padding: 28px; color: inherit; text-decoration: none; }
.account-destination:hover { border-color: #568591; }
.account-destination h2 { display: flex; justify-content: space-between; margin: 20px 0 12px; font-size: 20px; font-weight: 500; }
.account-destination h2 span { color: var(--cyan); }
.account-destination p { font-size: 13px; line-height: 1.8; color: #a0b3c2; margin: 0; }
.account-signout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px; font-size: 12px; }
.security-card > p { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.security-note { padding: 22px 26px; border-left: 2px solid #6798a2; border-radius: 0 14px 14px 0; background: #132029; color: #a3b7c5; font-size: 12px; line-height: 1.9; }
.security-note strong { font-size: 14px; color: #d6e5ee; font-weight: 500; }
.security-note p { margin-bottom: 0; }
.setup-overview { margin: 30px 0; color: #afc0cd; font-size: 13px; }
.setup-overview p { display: flex; align-items: start; gap: 20px; margin: 18px 0; }
.setup-overview span { color: var(--cyan); font: 12px/1.8 var(--mono); }
.security-state { display: flex; gap: 20px; align-items: start; margin: 34px 0; padding: 25px; background: #16282b; border-radius: 14px; }
.security-check { color: var(--lime); font-size: 24px; }
.security-state h3 { margin: 0; font-size: 16px; font-weight: 500; }
.security-state p { font-size: 13px; line-height: 1.8; }
.danger-details { border-top: 1px solid #34424c; padding-top: 20px; font-size: 13px; }
.danger-details summary { color: #bbc8d2; cursor: pointer; padding: 8px 0; }
.enrollment { display: grid; grid-template-columns: 200px minmax(0,1fr); align-items: center; gap: 24px; margin: 32px 0; }
.qr-frame { border-radius: 12px; padding: 8px; background: white; }
.qr-frame img { display: block; width: 100%; height: auto; }
.enrollment h3, .enrollment-confirm h3 { font-size: 15px; font-weight: 500; }
.enrollment p { font-size: 13px; line-height: 1.8; }
.setup-secret { margin: 8px 0; font: 12px/1.5 var(--mono); }
.enrollment-confirm { max-width: 380px; border-top: 1px solid #34434f; padding-top: 18px; }
@media (max-width: 950px) {
  .login-layout { gap: 32px; }
  .account-layout { grid-template-columns: 200px minmax(0,1fr); gap: 28px; }
  .enrollment { grid-template-columns: 1fr; }
  .qr-frame { max-width: 210px; }
  .account-cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .community-stage { padding: 38px 0 60px; }
  .login-layout, .account-layout { grid-template-columns: 1fr; }
  .login-intro { padding: 0 8px; }
  .login-intro h1 { font-size: 42px; margin: 16px 0; }
  .community-lede { font-size: 15px; }
  .login-benefits, .login-footnote { display: none; }
  .login-card { padding: 24px; }
  .account-sidebar { padding: 0 8px; }
  .account-sidebar h1 { font-size: 30px; margin-bottom: 20px; }
  .account-sidebar nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .account-sidebar nav a { padding: 10px 14px; gap: 16px; }
  .profile-card, .security-card { padding: 24px; }
  .security-card .card-heading { gap: 10px; align-items: start; }
  .security-card .card-heading h2 { font-size: 23px; }
  .help-dialog { padding: 22px; }
  .help-dialog h2 { font-size: 22px; }
  .label-with-help { align-items: start; flex-direction: column; gap: 4px; }
}
@media (max-width: 420px) {
  .login-bottom { flex-wrap: wrap; }
  .account-signout { align-items: start; }
}
