/* Account access is a compact composition within the existing portal frame.
   Overflow remains available for zoom, validation messages and short screens. */
.portal-frame--access { width: min(1080px, 100%); height: min(720px, 100%); }
.portal-frame--access .portal-frame__header { padding: 24px 32px 18px; }
.portal-frame--access .portal-frame__footer { padding: 16px 24px 22px; }
.portal-frame--access .portal-scroll { scrollbar-gutter: auto; }
.account-entry-home { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.account-entry-home:hover { color: var(--gold-primary); }
.is-portal .portal-scroll .account-access {
    min-height: 100%; padding: 10px 32px; display: flex; flex-direction: column;
    justify-content: center; min-width: 0; overflow: visible;
}
.account-entry { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5cqi, 58px); align-items: stretch; }
.account-entry__access { align-self: center; padding: 10px 0 10px 12px; min-width: 0; }
.account-entry__heading { margin-bottom: 28px; }
.account-entry__sigil { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border: 1px solid var(--border-strong); color: var(--gold-primary); background: rgb(var(--gold-rgb) / .04); }
.account-entry__sigil .icon { width: 25px; height: 25px; }
.account-entry h1, .account-entry h2 { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); line-height: 1.15; margin: 0; }
.account-entry h1 { font-size: clamp(26px, 3.3cqi, 36px); }
.account-entry__heading p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 12px 0 0; max-width: 350px; }
.account-entry__form { gap: 20px; }
.account-entry__form .ffield { gap: 9px; }
.account-entry__form .ffield__label { font-size: 11px; letter-spacing: .12em; color: var(--text-secondary); }
.account-entry__form .finput { height: 52px; min-height: 52px; font-size: 16px; background: linear-gradient(180deg, #080807, #10100d); }
.account-entry__form .finput-status__btn { min-width: 44px; min-height: 44px; }
.account-entry__form .fbtn { min-height: 52px; }
.account-entry__options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.account-entry__options .fcheck { min-height: 36px; gap: 9px; font-size: 13px; }
.account-entry__options > a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; color: var(--gold-primary); }
.account-entry__options > a:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }
.account-entry__invitation { position: relative; isolation: isolate; min-width: 0; display: flex; align-items: center; border: 1px solid var(--border-strong); background: #0e1013; }
.account-entry__scene { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .55; }
.account-entry__invitation::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 9 13 / .45), rgb(7 9 13 / .88) 60%, #0b0c0e); }
.account-entry__invitation::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgb(var(--gold-rgb) / .1); pointer-events: none; }
.account-entry__story { padding: 38px clamp(22px, 3.5cqi, 40px); width: 100%; }
.account-entry__story > .t-eyebrow { color: var(--gold-primary); font-size: 10px; letter-spacing: .2em; }
.account-entry h2 { font-size: clamp(26px, 3.5cqi, 38px); max-width: 290px; margin-top: 20px; }
.account-entry__story p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 18px 0 0; }
.account-entry__party { list-style: none; display: flex; justify-content: center; align-items: end; padding: 0; margin: 24px 0 12px; border-bottom: 1px solid var(--border-strong); background: radial-gradient(ellipse at bottom, rgb(var(--gold-rgb) / .13), transparent 70%); }
.account-entry__party li { flex: 1; min-width: 0; display: flex; justify-content: center; }
.account-entry__party img { width: 64px; max-width: 100%; height: 104px; object-fit: contain; object-position: bottom; image-rendering: pixelated; }
.account-entry__party-label { display: block; margin-bottom: 26px; text-align: center; font-size: 12px; color: var(--gold-primary); }
.account-entry__story .fbtn { width: 100%; min-height: 50px; }
.account-entry__mobile-create { display: none; }
/* MyAAC also prints these same errors before the login template. Present one
   accessible copy inside the form, without adding a full-width row to the page. */
.account-access:has(.account-entry__feedback) > .legacy-errors { display: none; }
.account-access:has(.account-entry__feedback) > .account-entry { margin-top: 0; }
.account-entry__feedback { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid rgb(var(--blood-rgb) / .3); border-left: 2px solid #b95052; background: rgb(var(--blood-rgb) / .08); color: #edb5b6; font-size: 13px; line-height: 1.5; }
.account-entry__feedback > .icon { flex-shrink: 0; margin-top: 2px; color: #dd7d80; }
.account-entry__errors { list-style: none; padding: 0; margin: 0; min-width: 0; }
.account-entry__errors li + li { margin-top: 6px; }
.account-entry__errors a { text-decoration: underline; text-underline-offset: 3px; }
.account-entry[data-has-errors] .account-entry__sigil { display: none; }
.account-entry[data-has-errors] .account-entry__heading { margin-bottom: 18px; }
.account-entry[data-has-errors] .account-entry__heading p { display: none; }
.account-entry[data-has-errors] .account-entry__form { gap: 15px; }
.account-entry[data-has-errors] .account-entry__mobile-create { margin-top: 14px; padding-top: 10px; }
@container (max-width: 760px) {
    .account-entry { grid-template-columns: minmax(0, 1fr); width: min(430px, 100%); margin-inline: auto; }
    .account-entry__access { padding: 0; }
    .account-entry__invitation { display: none; }
    .account-entry__heading { text-align: center; margin-bottom: 24px; }
    .account-entry__sigil { margin: 0 auto 18px; }
    .account-entry h1 { font-size: clamp(25px, 5.5cqi, 34px); }
    .account-entry__heading p { margin: 12px auto 0; }
    .account-entry__mobile-create { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-default); font-size: 13px; color: var(--text-secondary); }
    .account-entry__mobile-create a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--gold-primary); }
    .account-entry[data-has-errors] .account-entry__mobile-create { display: flex; }
    .account-entry[data-has-errors] .account-entry__mobile-create > span { display: none; }
}
@container (max-width: 420px) {
    .is-portal .portal-scroll .account-access { padding: 10px 22px; }
    .account-entry__heading p { font-size: 14px; }
    .account-entry__form { gap: 16px; }
    .account-entry__options { column-gap: 6px; }
    .account-entry__options > a, .account-entry__options .fcheck { font-size: 12px; }
    .account-entry__mobile-create { display: grid; gap: 0; text-align: center; }
    .account-entry__mobile-create a { justify-content: center; }
}
@media (max-width: 1023.98px) {
    .portal-frame--access .portal-frame__header { padding: 18px 22px 12px; }
    .portal-frame--access .portal-frame__footer { padding: 10px 20px 16px; }
}
@media (max-height: 800px) {
    .account-entry__sigil { display: none; }
    .account-entry__heading { margin-bottom: 22px; }
    .account-entry__story { padding-block: 28px; }
    .account-entry__party { margin-top: 18px; }
    .account-entry__mobile-create { margin-top: 18px; padding-top: 12px; }
}
@media (max-width: 760px) and (max-height: 700px) {
    .is-portal .portal-scroll .account-access:has(.account-entry__feedback) { padding-block: 4px; }
    .account-entry[data-has-errors] .account-entry__heading { margin-bottom: 12px; }
    .account-entry[data-has-errors] .account-entry__form { gap: 10px; }
    .account-entry[data-has-errors] .ffield { gap: 6px; }
    .account-entry[data-has-errors] .finput { min-height: 46px; height: 46px; }
    .account-entry[data-has-errors] .account-entry__form .fbtn { min-height: 46px; padding-block: 12px; }
    .account-entry[data-has-errors] .account-entry__mobile-create { margin-top: 8px; padding-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
    .account-entry { animation: account-arrive .4s ease-out both; }
    @keyframes account-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}

/* Keep the account title and its emblem on one baseline in every layout. */
.account-entry__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-entry .account-entry__sigil { display: grid; flex: 0 0 32px; width: 32px; height: 32px; margin: 0; }
.account-entry__sigil .icon { width: 21px; height: 21px; }
.account-entry__heading { text-align: left; }
.account-entry h1 { font-size: clamp(20px, 2.9cqi, 32px); }
@container (max-width: 760px) {
    .account-entry h1 { font-size: clamp(20px, 4.8cqi, 29px); }
    .account-entry__heading p { margin-inline: 0; }
}
