.store-account-page { --account-ink: #20242d; --account-muted: #626873; --account-line: #d9dce1; --account-accent: #39a8ee; }
.account-hero { min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.account-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, #16191f 0%, #272c35 58%, #15171c 100%); }
.account-hero::after { content: "B"; position: absolute; right: 4vw; bottom: -0.28em; color: rgba(255,255,255,.035); font: 700 min(48vw,620px)/1 Antonio,sans-serif; }
.account-hero-content { padding-top: 190px; padding-bottom: 75px; }
.account-hero .title { color: #fff; line-height: .92; letter-spacing: 0; }
.account-hero .title b { color: var(--account-accent); }
.account-eyebrow, .account-step { margin-bottom: 14px; color: var(--account-accent); font: 500 12px/1.4 Poppins,sans-serif; letter-spacing: 0; }
.account-hero-copy { max-width: 580px; margin-top: 28px; color: rgba(255,255,255,.74); font-size: 16px; }
.account-hero-compact { min-height: 460px; }
.account-section { color: var(--account-ink); }
.account-layout { display: grid; grid-template-columns: minmax(250px,.34fr) minmax(0,1fr); gap: 28px; align-items: start; }
.account-aside { position: sticky; top: 30px; padding: 42px 36px; color: #fff; background: #1b1e24; }
.account-aside h2 { color: #fff; font: 400 clamp(28px,3vw,44px)/1.05 Antonio,sans-serif; }
.account-aside h2 b { color: var(--account-accent); }
.account-aside p:not(.account-eyebrow) { margin: 25px 0; color: rgba(255,255,255,.7); }
.account-aside a, .account-login-actions a { display: inline-block; color: inherit; border-bottom: 1px solid currentColor; }
.account-card { padding: clamp(25px,4vw,54px); border: 1px solid var(--account-line); box-shadow: 0 14px 45px rgba(23,27,35,.07); }
.account-card-heading { margin-bottom: 34px; }
.account-card-heading h2 { color: var(--account-ink); font: 500 clamp(26px,3vw,40px)/1.1 Antonio,sans-serif; }
.account-card-heading > p:last-child { margin-top: 10px; color: var(--account-muted); }
.account-grid { display: grid; gap: 20px; }
.account-grid + .account-grid { margin-top: 20px; }
.account-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.account-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.account-grid-nested { margin-top: 0 !important; }
.account-field { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--account-ink); font-size: 12px; }
.account-field > span { font-weight: 500; }
.account-field input, .account-field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--account-line); border-radius: 3px; outline: none; color: var(--account-ink); background: #fff; font: 400 14px/1 Poppins,sans-serif; transition: border-color .2s, box-shadow .2s; }
.account-field input:focus, .account-field select:focus { border-color: var(--account-accent); box-shadow: 0 0 0 3px rgba(57,168,238,.12); }
.account-field small { color: var(--account-muted); line-height: 1.45; }
.account-phone { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 8px; }
.account-divider { display: flex; align-items: center; gap: 15px; margin: 35px 0 20px; color: var(--account-muted); font-size: 11px; }
.account-divider::after { content: ""; height: 1px; flex: 1; background: var(--account-line); }
.account-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 30px; color: var(--account-muted); font-size: 13px; line-height: 1.6; cursor: pointer; }
.account-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--account-accent); }
.account-actions { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 32px; }
.account-actions p { max-width: 410px; color: var(--account-muted); font-size: 13px; }
.account-submit { min-width: 190px; min-height: 50px; padding: 14px 24px; border: 0; border-radius: 2px; color: #fff; background: var(--account-ink); font: 500 12px/1 Poppins,sans-serif; cursor: pointer; transition: color .2s, background .2s; }
.account-submit:hover { color: #111; background: var(--account-accent); }
.account-submit:disabled { opacity: .55; cursor: wait; }
.account-alert { margin-bottom: 25px; padding: 14px 16px; border-left: 3px solid var(--account-accent); color: var(--account-ink); background: #eef8fe; font-size: 13px; line-height: 1.55; }
.account-alert.is-error { border-color: #e35454; background: #fff1f1; }
.account-login-container { max-width: 760px; }
.account-login-card { padding: clamp(32px,6vw,70px); }
.account-login-card .account-field + .account-field { margin-top: 22px; }
.account-login-actions { margin-top: 30px; }

/* Standalone account pages. Checkout keeps its own modal and styles. */
.account-access-wrapper { padding-top: 116px; }
.account-access-section { min-height: calc(100vh - 116px); display: flex; align-items: center; padding: 48px 0 64px; background: #f4f4f3; }
.account-access-container { width: min(100%, 600px); }
.account-register-container { width: min(100%, 860px); }
.account-access-card { padding: clamp(28px, 4vw, 46px); background: #fff; }
.account-access-card .account-card-heading { margin-bottom: 26px; text-align: center; }
.account-access-card .account-card-heading h1 { color: var(--account-ink); font: 500 clamp(30px, 4vw, 44px)/1.05 Antonio, sans-serif; letter-spacing: 0; }
.account-access-card .account-card-heading > p:last-child { max-width: 560px; margin: 10px auto 0; }
.account-access-card section > h2 { margin-bottom: 20px; color: var(--account-ink); font: 500 22px/1.2 Antonio, sans-serif; letter-spacing: 0; }
.account-submit-wide { width: 100%; margin-top: 22px; }
.account-identity { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--account-line); border-radius: 3px; color: var(--account-ink); background: #f7f7f7; text-align: left; cursor: pointer; }
.account-identity span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small { color: var(--account-accent); white-space: nowrap; }
.account-secondary-action { margin-top: 24px; color: var(--account-muted); font-size: 13px; text-align: center; }
.account-secondary-action a { color: var(--account-ink); border-bottom: 1px solid currentColor; font-weight: 500; }
.account-progress { display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; }
.account-progress span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--account-line); border-radius: 50%; color: var(--account-muted); background: #fff; font-size: 12px; }
.account-progress span.is-active { border-color: var(--account-accent); color: #fff; background: var(--account-accent); }
.account-progress i { width: clamp(28px, 7vw, 68px); height: 1px; background: var(--account-line); }
.account-step-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.account-back { min-height: 50px; padding: 14px 22px; border: 1px solid var(--account-line); border-radius: 2px; color: var(--account-ink); background: #fff; font: 500 12px/1 Poppins, sans-serif; cursor: pointer; }
.account-optional { margin-top: 22px; border-top: 1px solid var(--account-line); }
.account-optional summary { padding: 18px 0 0; color: var(--account-ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.account-optional[open] summary { margin-bottom: 18px; }
.account-field input.is-invalid, .account-field select.is-invalid, .account-consent input.is-invalid { border-color: #e35454; box-shadow: 0 0 0 3px rgba(227,84,84,.1); }

@media (max-width: 991px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-aside { position: static; }
  .account-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .account-hero { min-height: 430px; }
  .account-hero-content { padding-top: 155px; padding-bottom: 55px; }
  .account-grid-3, .account-grid-2 { grid-template-columns: 1fr; }
  .account-grid-nested { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-actions { align-items: stretch; flex-direction: column; }
  .account-submit { width: 100%; }
  .account-access-wrapper { padding-top: 92px; }
  .account-access-section { min-height: calc(100vh - 92px); padding: 28px 0 42px; }
  .account-access-card { padding: 25px 20px; }
  .account-step-actions { align-items: stretch; flex-direction: column-reverse; }
  .account-back { width: 100%; }
}

/* iFood access layout, adapted to the Brain Store brand. */
.store-account-page { min-height: 100vh; background: #f2f2f2; }
.store-account-page .main-root,
.store-account-page #dsn-scrollbar,
.store-account-page .account-access-wrapper { min-height: 100vh; }
.account-gradient-border { position: fixed; z-index: 9999; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #ed8841 0%, #d94ca5 50%, #4a9de1 100%); }
.store-account-page .account-access-wrapper { padding: 0; }
.store-account-page .account-access-section { min-height: 100vh; align-items: center; padding: 32px 0; background: #eceff1 url('../img/backgrounds/account-login.jpg') center/cover no-repeat; }
.store-account-page .account-access-container,
.store-account-page .account-register-container { width: 80%; min-width: 290px; max-width: 306px; padding: 0; }
.store-account-page .account-access-card { width: 100%; padding: 58px 35px 44px; border: 0; border-radius: 27px; background: #fff; box-shadow: 0 24px 55px rgba(0,0,0,.34); }
.account-brand { width: 100%; display: flex; justify-content: center; margin-bottom: 42px; }
.account-brand img { width: min(100%, 176px); height: 54px; display: block; object-fit: contain; }
.account-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.store-account-page .account-grid,
.store-account-page .account-grid-2,
.store-account-page .account-grid-3 { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 14px; }
.store-account-page .account-grid:first-of-type { margin-top: 0; }
.store-account-page .account-access-card section > h2 { margin-bottom: 18px; color: #464646; font: 600 15px/1.3 Poppins, sans-serif; text-align: center; }
.store-account-page .account-field { gap: 5px; color: #5d626a; font-size: 11px; text-align: left; }
.store-account-page .account-field input,
.store-account-page .account-field select { height: 40px; padding: 0 11px; border-color: #cbd0d5; border-radius: 4px; color: #5a5f66; font-size: 12px; }
.store-account-page .account-password { position: relative; display: block; width: 100%; }
.store-account-page .account-password input { padding-right: 42px; }
.store-account-page .account-password-toggle { position: absolute; top: 50%; right: 2px; width: 38px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; color: #777d86; background: transparent; cursor: pointer; transform: translateY(-50%); }
.store-account-page .account-password-toggle:hover,
.store-account-page .account-password-toggle:focus-visible { color: #189dff; outline: none; }
.store-account-page .account-phone { grid-template-columns: 76px minmax(0,1fr); }
.store-account-page .account-submit { min-width: 0; min-height: 38px; padding: 10px 18px; border-radius: 4px; color: #fff; background: #189dff; font-size: 11px; }
.store-account-page .account-submit:hover { color: #fff; background: #0b8ce8; }
.store-account-page .account-submit-wide { margin-top: 30px; }
.store-account-page .account-secondary-action { margin-top: 38px; color: #777d86; font-size: 12px; }
.store-account-page .account-secondary-action a { color: #777d86; }
.store-account-page .account-consent { gap: 9px; margin-top: 22px; color: #777d86; font-size: 11px; line-height: 1.45; text-align: left; }
.store-account-page .account-consent input { width: 15px; height: 15px; }
.store-account-page .account-alert { margin-bottom: 18px; padding: 10px 12px; font-size: 11px; }
.store-account-page .account-identity { padding: 9px 10px; font-size: 11px; }
.store-account-page .account-progress { margin-bottom: 25px; }
.store-account-page .account-progress span { width: 24px; height: 24px; font-size: 10px; }
.store-account-page .account-progress i { width: 24px; }
.store-account-page .account-step-actions { align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.store-account-page .account-step-actions.is-first { justify-content: center; }
.store-account-page .account-back { min-height: 38px; padding: 10px 12px; font-size: 10px; }
.store-account-page .account-optional { margin-top: 18px; }
.store-account-page .account-optional summary { padding-top: 14px; font-size: 11px; }
.account-registration-success { color: #5d626a; text-align: center; }
.account-registration-success-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: #189dff; font-size: 30px; }
.store-account-page .account-access-card .account-registration-success > h2 { margin-bottom: 14px; color: #30343b; font: 600 21px/1.25 Poppins, sans-serif; }
.account-registration-success p { margin: 8px 0; font-size: 12px; line-height: 1.55; }
.account-registration-success strong { display: block; margin: 10px 0 16px; color: #30343b; font-size: 12px; overflow-wrap: anywhere; }
.account-registration-success-note { color: #777d86; }
.account-registration-login { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 24px; }

@media (max-height: 720px) and (min-width: 621px) {
  .store-account-page .account-access-section { align-items: flex-start; }
}

@media (max-width: 620px) {
  .store-account-page .account-access-wrapper { padding: 0; }
  .store-account-page .account-access-section { min-height: 100vh; padding: 24px 0; }
  .store-account-page .account-access-card { padding: 42px 30px 34px; }
  .account-brand { margin-bottom: 32px; }
  .store-account-page .account-step-actions { flex-direction: row; }
  .store-account-page .account-back,
  .store-account-page .account-submit { width: auto; flex: 1; }
}

