.utility-body {
    min-height: 100svh;
    background: radial-gradient(ellipse at 28% 8%, #2b2231 0%, transparent 52%), #141218;
}
.utility-body .shell { width: min(1100px, calc(100% - clamp(32px, 7vw, 96px))); }
.utility-header, .utility-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.utility-header { min-height: 81px; border-block-end: 1px solid #b09ab325; }
.utility-back, .utility-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--muted);
    font-size: 13px;
}
.utility-back:hover, .utility-footer a:hover { color: var(--accent); }
.utility-back .icon, .utility-footer .icon { width: 17px; height: 17px; color: var(--accent); }
.utility-footer { justify-content: center; padding-block: 0 max(13px, env(safe-area-inset-bottom)); }

.access-main, .error-main { display: grid; align-items: center; padding-block: clamp(22px, 4vw, 56px); }
.access-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    overflow: hidden;
    border: 1px solid #58465a;
    border-radius: 22px;
    background: #211b25;
    box-shadow: 0 27px 90px #07050a9c;
}
.access-panel {
    min-width: 0;
    min-height: 534px;
    padding: clamp(26px, 4.1vw, 54px);
    background: radial-gradient(ellipse at 84% 0, #342639, transparent 62%), #201a24;
}
.access-panel h1, .error-copy h1 { margin: 0; font-size: clamp(29px, 4.3vw, 46px); line-height: 1.28; font-weight: 760; }
.access-panel h1 { font-size: clamp(28px, 3.45vw, 42px); font-weight: 820; }
.access-lead, .error-copy p { margin: 11px 0 21px; color: #d0c4d0; font-size: 15px; line-height: 1.85; }
.access-lead { margin: 8px 0 23px; font-size: 14px; }
.access-modes {
    display: flex;
    gap: 20px;
    margin-block-end: 26px;
    border-block-end: 1px solid #b9a1bf38;
}
.access-modes a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 70px;
    min-height: 44px;
    color: #d0c1d0;
    font-size: 14px;
    font-weight: 680;
}
.access-modes a:hover, .access-modes a.is-current { color: #f7db9d; }
.access-modes a.is-current::after {
    position: absolute;
    content: '';
    inset: auto 0 -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #f4d18c;
    box-shadow: 0 -3px 12px #ffcc753b;
}

/* WooCommerce forces login forms to display when scripting is disabled. */
.access-panel[data-mode="login"] [data-access-view="register"],
.access-panel[data-mode="register"] [data-access-view="login"] { display: none !important; }
.access-panel .woocommerce-notices-wrapper[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .access-switching .access-form { animation: access-reveal .2s ease-out; }
    @keyframes access-reveal {
        from { opacity: .55; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
.access-panel .woocommerce form.access-form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.access-panel .woocommerce .access-field { margin: 0 0 15px; padding: 0; }
.access-panel .woocommerce .access-field label { margin-block-end: 6px; color: #f6eff7; font-size: 13px; font-weight: 690; line-height: 1.6; }
.access-input { position: relative; display: block; color: #cfb7ce; }
.access-input > .icon {
    position: absolute;
    z-index: 1;
    inset-block-start: 50%;
    inset-inline-start: 15px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    pointer-events: none;
}
.access-input:focus-within { color: #f6d18a; }
.access-panel .woocommerce .access-field .input-text {
    display: block;
    width: 100%;
    min-height: 53px;
    padding: 10px 44px;
    border: 1px solid #795f7b;
    border-radius: 10px;
    background: #16121b;
    color: #fff6ff;
    box-shadow: inset 0 1px 3px #08050a83;
    font-size: 16px;
}
.access-panel .woocommerce .access-field .input-text:focus {
    border-color: #f4cf83;
    outline: 2px solid #f4cf8340;
    outline-offset: 1px;
}
.access-panel .woocommerce .access-field .input-text[aria-invalid="true"] {
    border-color: #e794a7;
}
.access-panel .woocommerce .access-field .input-text[aria-invalid="true"]:focus {
    outline-color: #e794a752;
}
.access-field-error {
    display: block;
    color: #f1a9b8;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.access-field-error:not(:empty) { margin-block-start: 6px; }
.access-input.password-input {
    --password-eye-size: 42px;
    --password-eye-inset: 5px;
}
.access-panel .woocommerce .access-field .password-input .input-text {
    padding-left: calc(var(--password-eye-size) + var(--password-eye-inset) + 12px);
}
.access-panel .woocommerce .access-input .show-password-input {
    inset: 50% auto auto var(--password-eye-inset);
    display: grid;
    place-items: center;
    width: var(--password-eye-size);
    height: var(--password-eye-size);
    padding: 0;
    border-radius: 8px;
    background: transparent;
    color: #d2bfda;
    transform: translateY(-50%);
}
.access-panel .woocommerce .access-input .show-password-input:is(:hover, :focus-visible, .display-password) {
    background: #f6ce7f16;
    color: #f6d18a;
}
.access-panel .woocommerce .access-input .show-password-input::before {
    content: '';
    display: block;
    width: 21px;
    height: 21px;
    margin: 0;
    background: currentColor;
    filter: none;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12c2.5-3.5 6-5.75 10-5.75S19.5 8.5 22 12c-2.5 3.5-6 5.75-10 5.75S4.5 15.5 2 12Z' fill='none' stroke='black' stroke-width='1.65' stroke-linejoin='round'/%3E%3Cpath d='M12 8.8c.37 1.88 1.32 2.83 3.2 3.2-1.88.37-2.83 1.32-3.2 3.2-.37-1.88-1.32-2.83-3.2-3.2 1.88-.37 2.83-1.32 3.2-3.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.access-panel .woocommerce .access-input .show-password-input.display-password::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l16 16M10.2 6.45a10 10 0 0 1 1.8-.2c4 0 7.5 2.25 10 5.75a16 16 0 0 1-3.4 3.45M14.5 17.4a10 10 0 0 1-2.5.35c-4 0-7.5-2.25-10-5.75a16 16 0 0 1 3.35-3.42' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.access-panel .woocommerce .access-field :is(.woocommerce-password-strength, .access-strength-empty) {
    --strength-tone: #ef9ca9;
    --strength-bar: #d79974;
    --strength-fill: 25%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(82px, 29%, 122px);
    align-items: center;
    gap: 4px 12px;
    margin: 8px 0 0;
    padding: 7px 11px;
    border: 1px solid #69536c;
    border-radius: 8px;
    background: #211a28;
    color: var(--strength-tone);
    font-size: 12px;
    line-height: 1.65;
    text-align: start;
}
.access-panel .woocommerce .access-field :is(.woocommerce-password-strength, .access-strength-empty)::after {
    content: '';
    height: 6px;
    background: linear-gradient(to left, var(--strength-bar) var(--strength-fill), #736e7b var(--strength-fill));
    mask: repeating-linear-gradient(to left, #000 0 calc(25% - 4px), transparent calc(25% - 4px) 25%);
}
.access-panel .woocommerce .access-field .access-strength-empty {
    --strength-tone: #cbbfcf;
    --strength-fill: 0%;
    display: none;
}
.access-panel .woocommerce .access-field:is(:has(#reg_password:placeholder-shown), :not(:has(.woocommerce-password-strength))) > .access-strength-empty {
    display: grid;
}
.access-panel .woocommerce .access-field .woocommerce-password-strength.bad {
    --strength-tone: #efae91;
    --strength-bar: #c6b671;
    --strength-fill: 50%;
}
.access-panel .woocommerce .access-field .woocommerce-password-strength.good {
    --strength-tone: #d3dc9b;
    --strength-bar: #a8c880;
    --strength-fill: 75%;
}
.access-panel .woocommerce .access-field .woocommerce-password-strength.strong {
    --strength-tone: #b7e2c6;
    --strength-bar: #7ed7a8;
    --strength-fill: 100%;
}
.access-panel .woocommerce .access-field .woocommerce-password-hint {
    display: block;
    margin: 6px 1px 0;
    color: #d0c4d0;
    font-size: 12px;
    line-height: 1.7;
}
.access-contact-hint { display: block; margin-block-start: 6px; color: #c9bacc; font-size: 12px; }
.access-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; margin: 0 0 12px; font-size: 13px; }
.access-options .access-remember.woocommerce-form-login__rememberme,
.access-recovery { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.access-remember { position: relative; color: #ded1df; cursor: pointer; }
.access-remember input { position: absolute; inset-inline-start: 0; width: 20px; height: 20px; margin: 0; opacity: 0; }
.access-remember-box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid #a58aa7;
    border-radius: 6px;
    background: #17121c;
    color: #231810;
}
.access-remember-box .icon { visibility: hidden; width: 14px; height: 14px; stroke-width: 2.5; }
.access-remember:hover .access-remember-box { border-color: #f4d38c; }
.access-remember input:focus-visible + .access-remember-box { outline: 2px solid #f4d38c; outline-offset: 3px; }
.access-remember input:checked + .access-remember-box { border-color: #f4d38c; background: #edc781; }
.access-remember input:checked + .access-remember-box .icon { visibility: visible; }
.access-recovery { padding-inline: 8px; border-radius: 7px; color: #f2d392; text-underline-offset: 4px; }
.access-recovery:hover { background: #f2d39214; color: #ffe4b1; text-decoration: underline; }
.access-recovery .icon { width: 15px; height: 15px; }
.access-note, .access-panel .woocommerce-privacy-policy-text { color: #d0c4d0; font-size: 13px; }
.access-panel .woocommerce-privacy-policy-text a { color: #f1ce8f; text-decoration: underline; text-underline-offset: 3px; }
.access-panel .woocommerce button.access-submit {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding-inline: 42px;
    border: 1px solid #f6d48e;
    border-radius: 10px;
    background: #eac47c linear-gradient(105deg, #dfb36d, #f6d894);
    color: #211711;
    box-shadow: 0 7px 20px #10080965, inset 0 1px #ffedbeb0;
    font-size: 15px;
    font-weight: 790;
}
.access-panel .woocommerce button.access-submit:hover:not(:disabled) { background: #ffe0a3; }
.access-panel .woocommerce button.access-submit:disabled { opacity: .65; }
.access-submit .icon { position: absolute; inset-inline-end: 15px; inset-block-start: calc(50% - 9px); width: 18px; height: 18px; }
.access-panel .woocommerce-privacy-policy-text p { margin: 4px 0 14px; }
.access-panel .woocommerce :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
    margin-block: 0 16px;
    border: 1px solid #9e7e9b;
    background: #342736;
    overflow-wrap: anywhere;
}

.access-sky {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-inline-start: 1px solid #a780a02e;
    background:
        radial-gradient(ellipse at 36% 48%, #85595149, transparent 66%),
        linear-gradient(152deg, #19162345, #1714228f 52%, #0f0e18 100%),
        var(--galaxy-art) center / cover no-repeat,
        #171522;
}
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-orbit {
    position: absolute;
    inset-block-start: 49%; left: 49%; width: min(53%, 300px); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.sky-disc {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(ellipse at 31% 14%, #b17c55, #593947 24%, #2e2335 39%, #151421 63%, #12101a 83%);
    box-shadow: -7px -7px 31px #e19e6669, 0 20px 60px #080711ba, inset 2px 1px 5px #f5bd79bf, inset -14px -22px 46px #100f1bc7;
}
.sky-ring {
    position: absolute; inset: 35% -29%; transform: rotate(-30deg);
    border: 1px solid #dfad7475; border-block-start-color: #eeb58a32; border-radius: 50%;
    box-shadow: 0 5px 14px #c07b5026;
}
.sky-ring--back { clip-path: inset(-24px -24px 50%); }
.sky-ring--front { clip-path: inset(50% -24px -24px); }
.sky-ring--front::after {
    position: absolute; content: ''; inset: auto 19% 10% auto; width: 6px; aspect-ratio: 1;
    border-radius: 50%; background: #ffe7b5; box-shadow: 0 0 17px 3px #f6be7596;
}

.error-stage {
    position: relative;
    overflow: hidden;
    padding-block: 16px clamp(24px, 4vw, 43px);
    border: 1px solid #514458;
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 53% 25%, #9d66443d, transparent 42%),
        radial-gradient(ellipse at 75% 7%, #5133493d, transparent 55%),
        linear-gradient(180deg, transparent 12%, #1e1925 83%),
        var(--star-field) center top / 100% auto no-repeat,
        #201b28;
    box-shadow: 0 27px 90px #07050a9c;
}
.error-figure { position: relative; isolation: isolate; display: grid; place-items: center; width: min(100%, 660px); height: clamp(161px, 34vw, 299px); margin-inline: auto; }
.error-figure::before, .error-figure::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 24% 13%;
    border: 1px solid #dfae792d;
    border-radius: 50%;
    transform: rotate(-10deg);
}
.error-figure::after { inset: 16% 8%; border-color: #dfae791a; }
.error-number { color: #f5cf86; font-size: clamp(106px, 24vw, 206px); font-weight: 900; line-height: 1; text-shadow: 0 0 45px #deae6780; }
.error-figure:not(.is-animated) .scene-canvas, .error-figure.is-animated .error-number { visibility: hidden; }
.error-copy { text-align: center; padding-inline: 16px; }
.error-copy p { max-width: 50ch; margin: 10px auto 19px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

@media (max-width: 690px) {
    .utility-header { min-height: 64px; }
    .utility-header .brand { font-size: 22px; }
    .utility-header .brand-symbol { width: 26px; height: 26px; }
    .access-stage { grid-template-columns: minmax(0, 1fr); }
    .access-panel { min-height: 0; }
    .access-modes { margin-block-end: 22px; }
    .access-sky { grid-row: 1; height: clamp(128px, 35vw, 213px); border-inline-start: 0; border-block-end: 1px solid #a780a02e; }
    .sky-orbit { width: min(28%, 136px); }
}
@media (max-width: 370px) {
    .access-panel { padding: 19px 16px 21px; }
    .error-actions .button { padding-inline: 11px; font-size: 13px; }
}
