:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; color: #eaf1ff; background: #050b15; }
:lang(ja) { font-family: "Yu Gothic", Meiryo, sans-serif; }
:lang(ko) { font-family: "Malgun Gothic", sans-serif; }
:lang(zh-CN) { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.translation-fallback { position: relative; z-index: 30; margin: 0; padding: 9px 16px; background: #42305c; color: #fff; text-align: center; font: 13px/1.4 Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; isolation: isolate; background: #040912; }
/* Camada decorativa independente: o cadastro mais alto não amplia o cenário. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #040912 url('/assets/conta-fundo.webp') center center / cover no-repeat; }
a { color: #c8def9; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #dceaff; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 12px; padding: 12px; background: #102647; z-index: 5; }
.skip-link:focus { top: 10px; }
.account-header { position: absolute; top: 0; left: 0; width: 100%; display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 2.7%; gap: 16px; }
.account-logo { display: block; width: clamp(130px, 13vw, 220px); }
.account-logo img { display: block; width: 100%; height: auto; }
.back-site { margin-top: 38px; text-decoration: none; font-size: 15px; }
main { width: min(570px, calc(100% - 32px)); margin-inline: auto; min-height: 100svh; padding-block: 100px 28px; display: flex; flex-direction: column; justify-content: center; }
.account-panel { width: 100%; min-width: 0; padding: 34px 38px 30px; border: 1px solid #b3cce7; border-radius: 18px; background: linear-gradient(130deg, #07101eee, #030810f5); box-shadow: 0 0 0 1px #a6d2ff18, 0 18px 65px #0005; }
.closed-panel { padding-block: 54px; text-align: center; }
.closed-panel .subtitle { margin: 12px 0 0; }
body[data-session="active"] .account-panel { position: relative; padding-top: 88px; }
.account-toolbar { position: absolute; top: 26px; left: 38px; right: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.session-badge { color: #b4c7e1; font-size: 12px; }
.session-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: #a5bce1; }
.account-signout { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border: 1px solid #6c829f; border-radius: 8px; background: #0a111b; font-size: 14px; }
.account-signout:hover { background: #132a45; }
.account-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid #34475f; }
.account-section h2 { margin: 0 0 18px; font-size: 18px; line-height: 1.4; font-weight: 500; color: #eaf1ff; }
.account-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.account-facts > div { min-width: 0; }
.account-email { grid-column: 1 / -1; }
.account-facts dt { font-size: 12px; color: #aebed5; margin-bottom: 7px; }
.account-facts dd { margin: 0; color: #d6e6fc; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.account-help { margin: 14px 0 0; color: #aebed5; font-size: 13px; line-height: 1.6; }
.password-intro { margin: -6px 0 22px; }
.linked-accounts { list-style: none; margin: 0; padding: 0; }
.linked-accounts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.linked-accounts li + li { border-top: 1px solid #23344b; }
.linked-provider { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; }
.linked-provider img { object-fit: contain; flex: none; }
.link-state { color: #aebed5; font-size: 12px; text-align: right; }
.account-delete summary { cursor: pointer; padding-block: 4px; color: #aebed5; font-size: 14px; }
.account-delete a { display: inline-block; margin-top: 14px; font-size: 13px; }
.account-delete form, #cancel-deletion { margin-top: 22px; }
h1 { text-align: center; font-size: 32px; font-weight: 500; letter-spacing: .16em; line-height: 1.25; margin: 0 0 6px; overflow-wrap: anywhere; }
.subtitle { color: #b4c7e1; text-align: center; font-size: 17px; line-height: 1.5; margin: 0 0 16px; }
.demo-note { font-size: 12px; line-height: 1.5; color: #afc0d8; border-left: 2px solid #597aab; padding-left: 10px; margin: 0 0 24px; }
.availability-note { padding: 16px; margin: 20px 0; border: 1px solid #6c829f; border-radius: 8px; background: #0b1a2e; color: #eaf1ff; font-size: 15px; line-height: 1.6; }
.support-contact { overflow-wrap: anywhere; }
html[data-site-mode="public"] form { opacity: .55; }
html[data-site-mode="public"] button:disabled { cursor: not-allowed; }
.field { margin-bottom: 18px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label { display: block; font-size: 14px; margin-bottom: 9px; }
.field input { width: 100%; min-width: 0; height: 50px; padding: 12px 16px; border: 1px solid #6c829f; border-radius: 8px; background: #030b17; color: #eef4ff; }
.field select { width: 100%; min-width: 0; min-height: 50px; padding: 12px; border: 1px solid #6c829f; border-radius: 8px; background: #030b17; color: #eef4ff; font: inherit; font-size: 16px; }
.birthdate-field > legend { padding: 0; margin-bottom: 12px; font-size: 14px; }
.birthdate-selects { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 10px; }
.birthdate-selects > div { min-width: 0; }
.birthdate-selects label { display: block; font-size: 14px; margin-bottom: 9px; }
.birthdate-selects select { padding-inline: 8px; }
#eligibility-result { font-size: 13px; line-height: 1.5; color: #ffd0c7; margin: 8px 0 0; }
#eligibility-result:empty { display: none; }
input::placeholder { color: #9aacc6; }
.field small, .legal-note { display: block; color: #aebed5; font-size: 12px; line-height: 1.5; margin-top: 7px; }
.password-field { position: relative; }
.password-field input { padding-right: 82px; }
.show-password { position: absolute; top: 1px; right: 3px; min-height: 48px; padding: 0 10px; background: none; border: none; font-size: 12px; color: #c3d7f4; }
.login-options { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 13px; margin: 0 0 24px; }
.check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; font-size: 13px; }
.check input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: #446ea4; }
.check span { min-width: 0; }
body[data-mode="cadastro"] .terms-check, body[data-mode="google"] .terms-check { margin-bottom: 18px; }
.primary { display: flex; justify-content: center; align-items: center; gap: 20px; width: 100%; min-height: 54px; padding: 12px; font-size: 18px; letter-spacing: .08em; border: 1px solid #bddfff; border-radius: 9px; background: linear-gradient(#163660, #07192e); box-shadow: inset 0 0 5px #abcfff50, 0 0 11px #497acd60; }
.primary:hover { background: linear-gradient(#214776, #102b48); }
a.primary { text-decoration: none; }
#form-result { margin: 16px 0; font-size: 14px; line-height: 1.5; color: #d6e6fc; overflow-wrap: anywhere; }
#form-result:empty { display: none; }
[aria-invalid="true"] { border-color: #ffc0b5 !important; }
.divider { display: flex; align-items: center; gap: 16px; margin: 23px 0 17px; color: #aebed5; font-size: 12px; letter-spacing: .07em; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: #64748a; }
.provider { width: 100%; border: 1px solid #b9d2ed; border-radius: 9px; min-height: 52px; background: #0a111b; padding: 12px; font-size: 17px; }
.provider-icons { display: flex; justify-content: center; align-items: center; gap: 16px; }
.provider-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; padding: 9px; border: 1px solid #b9d2ed; border-radius: 8px; background: #0a111b; }
.provider-icon img { display: block; object-fit: contain; }
.provider-icon:not(:disabled):hover { background: #132a45; box-shadow: 0 0 12px #497acd50; }
.provider-icon:disabled { border-color: #485567; background: #0c121c; }
.provider-icon:disabled img { opacity: .5; }
.provider-unavailable { position: relative; display: block; cursor: not-allowed; }
.provider-unavailable button { pointer-events: none; }
.provider-tooltip { position: absolute; z-index: 2; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 9px; border: 1px solid #6c829f; border-radius: 5px; background: #07101e; color: #eaf1ff; white-space: nowrap; font-size: 12px; visibility: hidden; pointer-events: none; }
.provider-unavailable:hover .provider-tooltip { visibility: visible; }
.switch { margin: 28px 0 0; text-align: center; font-size: 14px; line-height: 1.6; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; padding-top: 28px; font-size: 12px; }
footer a { text-decoration: none; }
.recovery-icon { text-align: center; font-size: 48px; color: #a5bce1; margin-bottom: 20px; }
body[data-registration="success"] .account-panel, body[data-action="verify"] .account-panel, body[data-token-success="true"] .account-panel { padding-block: 40px; }
body[data-registration="success"] .subtitle, body[data-action="verify"] .subtitle { margin-bottom: 28px; overflow-wrap: anywhere; }
#registration-resend-result { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #d6e6fc; overflow-wrap: anywhere; }
#registration-resend-result:empty { display: none; }
body[data-mode="recuperar"] .account-panel { padding-block: 40px; }
body[data-mode="recuperar"] h1 { font-size: 28px; }
body[data-mode="recuperar"] .field { margin-top: 30px; margin-bottom: 25px; }
dialog { width: min(480px, calc(100% - 32px)); padding: 28px; border: 1px solid #b3cce7; border-radius: 14px; background: #07101e; color: #eaf1ff; line-height: 1.6; }
dialog::backdrop { background: #000b; }
noscript { display: block; padding: 20px; }
@media (max-width: 760px) {
  /* Recorte proporcional: borda cósmica à esquerda e centro escuro sob o painel. */
  body::before { background-position: 35% center; }
  .account-header { position: relative; padding: 8px 16px; align-items: center; }
  .account-logo { width: 125px; }
  .back-site { margin: 0; font-size: 13px; }
  main { min-height: auto; padding-top: 16px; }
  .account-panel { padding: 28px 20px; border-radius: 14px; }
  body[data-session="active"] .account-panel { padding-top: 80px; }
  .account-toolbar { top: 20px; left: 20px; right: 20px; }
  body[data-registration="success"] .account-panel, body[data-action="verify"] .account-panel, body[data-token-success="true"] .account-panel { padding-block: 28px; }
  h1 { font-size: 26px; letter-spacing: .12em; }
  body[data-mode="recuperar"] h1 { font-size: 23px; }
  .subtitle { font-size: 15px; }
  .field input { font-size: 16px; }
  .login-options { gap: 16px; }
  .provider { font-size: 16px; }
}
