@font-face {
    font-family: "Account Futura";
    src: url("./futura-condensed.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Account Open Sans";
    src: url("./open-sans.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Account Open Sans";
    src: url("./open-sans-italic.woff") format("woff");
    font-style: italic;
    font-display: swap;
}

.account-page {
    --account-display: "Account Futura", Impact, sans-serif;
    --account-body: "Account Open Sans", Tahoma, sans-serif;
    --account-line: #b3b3b3;
    background: radial-gradient(at 50% 0%, transparent 0, #0008 50%, #000f 100%) fixed,
        #090d0d var(--account-leather) repeat fixed 0 0 / 75% auto;
    color: #f6f3e6;
    color-scheme: dark;
}

.account-page *,
.account-page *::before,
.account-page *::after { box-sizing: border-box; }
.account-page body { margin: 0; min-height: 100vh; font: 16px/1.4 var(--account-body); }
.account-page :is(button, input, select) { font: inherit; }
.account-page :is(button, select, summary, input[type="checkbox"]) { cursor: pointer; }
.account-page a { color: var(--account-accent); }
.account-page a:hover { color: #fff; }
.account-page :focus-visible { outline: 2px solid #e5cc8b; outline-offset: 3px; }

.account-skip { position: fixed; left: 12px; top: 8px; z-index: 20; padding: 8px 12px; background: #101010; transform: translateY(-160%); }
.account-skip:focus { transform: none; }
.account-header { position: sticky; top: 0; z-index: 10; }
.account-tabs { background: #171619 var(--account-header-texture) repeat center; border-bottom: 2px solid #8d7c57; }
.account-tabs { display: flex; justify-content: center; gap: 36px; min-height: 45px; }
.account-tabs a { display: grid; place-items: center; position: relative; font: 24px/1 "Account Futura", Impact, sans-serif; text-transform: uppercase; text-decoration: none; }
.account-tabs a[aria-current] { color: #fff; }
.account-tabs a[aria-current]::after {
    position: absolute;
    bottom: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    rotate: 45deg;
    border-top: 2px solid var(--account-accent);
    border-left: 2px solid var(--account-accent);
    background: #171619;
    content: "";
}

.account-scroll { position: fixed; z-index: 5; right: 22px; top: 122px; display: grid; }
.account-scroll button { border: 0; color: #aaa; background: transparent; padding: 2px; line-height: 0; }
.account-scroll button:hover { color: #fff; }
.account-scroll svg { width: 23px; height: 23px; }
.account-main { padding: 16px 16px 32px; scroll-margin-top: 82px; }
.account-main-register { padding-top: 36px; }
.account-panel { width: min(100%, 500px); margin-inline: auto; background: var(--account-panel); }
.account-panel-heading { padding: 15px 12px 14px; text-align: center; border-bottom: 2px solid var(--account-accent); }
.account-main-register .account-panel-heading { padding-top: 30px; }
.account-panel-heading h1 { margin: 0; color: white; font: 33.6px/1.3 var(--account-display); letter-spacing: .075em; text-transform: uppercase; }
.account-panel-heading p { margin: 10px 0 0; font-size: 13px; font-style: italic; }
.account-panel-heading p a { font-weight: 700; }
.account-main-register .account-panel-heading p a { margin-left: 3px; }
.account-notice { margin: 16px 30px 0; padding: 8px 14px; border: 1px solid var(--account-accent); color: white; overflow-wrap: anywhere; }
.account-errors { border-color: #ef8b80; padding-inline-start: 32px; }

.account-form { padding: 37px 30px 20px; }
.account-main-register .account-form { padding: 39px 45px 28px; }
.account-field-group { position: relative; margin: 0 0 32.5px; }
.account-field { position: relative; }
.account-field > label {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 15px;
    max-width: calc(100% - 26px);
    padding: 0 5px;
    transform: translateY(-50%);
    background: var(--account-panel);
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.account-field-stacked { padding-top: 24px; }
.account-field-stacked > label { top: -2px; transform: none; background: transparent; }
.account-form :is(input:not([type="hidden"], [type="checkbox"]), select) {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 12px;
    border: 2px solid var(--account-line);
    border-radius: 0;
    background: var(--account-panel);
    color: #ddd;
    font-size: 14px;
}
.account-form input::placeholder { color: #a0a0a0; font-style: italic; }
.account-form .account-field select {
    appearance: none;
    padding-right: 29px;
    background: linear-gradient(45deg, transparent 50%, #aaa 50%) right 11px center / 4px 4px no-repeat,
        linear-gradient(135deg, #aaa 50%, transparent 50%) right 7px center / 4px 4px no-repeat, var(--account-panel);
    font-size: 16px;
}
.account-form :is(#account-password, #account-id) { padding-right: 44px; }
.account-valid-icon, .account-password-toggle { position: absolute; right: 10px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; }
.account-valid-icon { color: var(--account-accent); pointer-events: none; }
.account-valid-icon svg, .account-password-toggle svg { width: 17px; height: 17px; }
.account-password-toggle { border: 0; color: #eee; background: transparent; }
.account-password-toggle .account-eye-closed,
.account-password-toggle[aria-pressed="true"] .account-eye-open { display: none; }
.account-password-toggle[aria-pressed="true"] .account-eye-closed { display: block; }
.account-field-hint { margin: 6px 0 -8px; font-size: 12px; color: #bdb8ab; }
.account-recovery { display: flex; align-items: flex-start; gap: 17px; margin: 5px 12px 0; color: var(--account-accent); text-decoration: none; font-size: 18px; }
.account-recovery svg { flex: 0 0 20px; height: 20px; margin-top: 2px; }
.account-recovery:hover { text-decoration: underline; }
.account-remember { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #fff; }
.account-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--account-accent); }
.account-answer { margin-top: 8px; }
.account-help { position: absolute; z-index: 2; top: -26px; right: -1px; }
.account-field-stacked + .account-help { top: 0; }
.account-help summary { list-style: none; width: 23px; margin-left: auto; color: var(--account-accent); }
.account-help summary::-webkit-details-marker { display: none; }
.account-help summary svg { width: 20px; height: 20px; }
.account-help p { width: min(280px, 74vw); margin: 3px 0; padding: 10px 12px; border: 1px solid var(--account-accent); background: #222; font-size: 13px; }
.account-terms { margin: 0 0 24px; }
.account-terms h2 { margin: 0 0 3px; font-size: 16px; font-weight: 400; }
.account-print-link { font-size: 13px; text-transform: uppercase; }
.account-terms-text { height: 200px; overflow: auto; margin-top: 2px; padding: 8px; background: #1e1e1e; color: #e7e2d5; font-size: 13px; }
.account-terms-text h3 { margin: 4px 0 10px; color: #e7e2d5; font: 36px/1.15 var(--account-display); letter-spacing: .035em; text-align: center; text-transform: uppercase; }
.account-terms-text p { margin: 0 0 10px; }
.account-acceptance { text-transform: uppercase; margin: 12px 0 23px; color: #eee; }
.account-submit {
    width: 100%;
    min-height: 70px;
    border: 0;
    border-radius: 0;
    background: var(--account-accent);
    color: #202020;
    text-transform: uppercase;
}
.account-submit[type] { font: 20px/1 var(--account-display); }
.account-form:has(input:invalid) .account-submit { background: #b3b3b3; color: #333; }
.account-submit:hover { filter: brightness(1.12); }

.account-legal-footer { border-top: 2px solid #8d7c57; padding: 27px 30px 58px; background: #171619 var(--account-header-texture) repeat; }
.account-legal-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 16px; }
.account-legal-footer nav a, .account-footer-brand { font: 20px/1.35 var(--account-display); text-decoration: none; text-transform: uppercase; }
.account-legal-footer nav + nav a { font-size: 15px; }
.account-footer-brand { display: inline-block; margin: 20px 0 35px; color: #fff !important; font-size: 32px; }
.account-footer-brand img { display: block; width: auto; height: 40px; max-width: 205px; object-fit: contain; }
.account-legal-footer small { display: block; font-size: 12px; }
.account-main-terms .account-panel { width: min(100%, 680px); }
.account-print { padding: 15px 30px 30px; }
.account-print button { padding: 7px 16px; background: var(--account-accent); border: 0; color: #111; }
.account-return { margin: 18px 0 0; }

@media (max-width: 640px) {
    .account-scroll { display: none; }
    .account-tabs { gap: 25px; }
    .account-tabs a { font-size: 21px; }
    .account-page { background-size: auto, auto 550px; }
    .account-main-register { padding-top: 24px; }
    .account-main-register .account-form, .account-form { padding-inline: 19px; }
    .account-field-stacked { padding-top: 42px; }
    .account-field-stacked > label { max-width: calc(100% - 42px); }
    .account-recovery { font-size: 15px; gap: 8px; margin-inline: 2px; }
    .account-legal-footer { padding-inline: 20px; }
}

@media print {
    .account-page, .account-page body { background: white; color: black; }
    .account-header, .account-scroll, .account-skip, .account-print button { display: none; }
    .account-main-terms .account-panel { width: 100%; background: white; color: black; }
    .account-panel-heading h1 { color: black; }
}
