.account-page {
    background: #080808;
}

.account-main {
    width: min(100% - 2rem, 720px);
    min-height: 55vh;
    margin: 2rem auto 4rem;
}

.account-panel {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    color: #f7f7f7;
    background: #131313;
    border: 1px solid #333;
    border-radius: 10px;
}

.account-title {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.4;
}

.account-lead {
    margin: 0 0 1.5rem;
    color: #ddd;
    line-height: 1.8;
}

.account-form {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.account-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.account-field {
    display: grid;
    gap: .55rem;
}

.account-field label,
.account-check {
    font-weight: 700;
}

.account-field input[type="email"],
.account-field input[type="password"],
.account-field input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: .75rem .85rem;
    color: #fff;
    background: #050505;
    border: 1px solid #666;
    border-radius: 6px;
    font-size: 16px;
}

.account-field input::placeholder {
    color: #999;
    opacity: 1;
}

.account-field input:focus {
    border-color: #ff65b7;
    outline: 2px solid rgba(255, 101, 183, .25);
    outline-offset: 1px;
}

.account-field input.is-invalid {
    border-color: #ff5252;
    outline: 2px solid rgba(255, 82, 82, .22);
    outline-offset: 1px;
}

.account-field-error {
    margin: 0;
    color: #ff6b6b;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.6;
}

.account-field-error:empty {
    display: none;
}

.account-password-control {
    position: relative;
}

.account-password-control input[type="password"],
.account-password-control input[type="text"] {
    padding-right: 3.5rem;
}

.account-password-toggle {
    position: absolute;
    top: 50%;
    right: .25rem;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
    transform: translateY(-50%);
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.account-password-toggle:hover,
.account-password-toggle:focus-visible {
    color: #ff8fc9;
    background: rgba(255, 255, 255, .08);
    outline: 2px solid rgba(255, 101, 183, .45);
    outline-offset: -2px;
}

.account-password-toggle i {
    font-size: 1.2rem;
    pointer-events: none;
}

.account-help {
    margin: 0;
    color: #bbb;
    font-size: .9rem;
    line-height: 1.6;
}

.account-help code {
    color: #fff;
    overflow-wrap: anywhere;
}

.account-cleanup-notice {
    margin: 1.25rem 0 0;
}

.account-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    line-height: 1.7;
}

.account-check-field {
    display: grid;
    gap: .55rem;
}

.account-check input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .2rem;
    flex: 0 0 auto;
}

.account-check input.is-invalid {
    outline: 2px solid #ff5252;
    outline-offset: 2px;
}

.account-policy-agreement {
    font-weight: 400;
}

.account-policy-agreement .js-account-policy-link {
    color: #ff8fc9;
    font-weight: 700;
    text-decoration: underline;
}

.account-primary-button,
.account-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: .8rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.account-primary-button {
    color: #fff;
    background: #d72d87;
    border: 1px solid #ef57a6;
}

.account-secondary-button {
    color: #fff;
    background: #2d2d2d;
    border: 1px solid #666;
}

.account-primary-button:hover,
.account-secondary-button:hover {
    color: #fff;
    filter: brightness(1.12);
    text-decoration: none;
}

.account-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    line-height: 1.7;
}

.account-message ul {
    margin: 0;
    padding-left: 1.25rem;
}

.account-message-error {
    color: #ffd7d7;
    background: #3b1515;
    border: 1px solid #8b3636;
}

.account-message-success {
    color: #d9ffe2;
    background: #12351c;
    border: 1px solid #347949;
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.25rem;
    margin-top: 1.5rem;
}

.account-links--invalid-reset {
    align-items: center;
}

.account-email-box {
    display: grid;
    gap: .35rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: #080808;
    border: 1px solid #444;
    border-radius: 6px;
}

.account-email-box strong {
    overflow-wrap: anywhere;
    font-size: 1.05rem;
}

.account-inline-form {
    margin: 1.25rem 0 0;
}

.account-verification-sent-label {
    margin: 0 0 .4rem;
    color: #ddd;
    line-height: 1.7;
}

.account-pending-email {
    margin: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
}

.account-verification-instruction {
    margin: 1.25rem 0 0;
    color: #ddd;
    line-height: 1.8;
}

.account-resend-action {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .45rem;
    align-items: baseline;
    margin: 1.25rem 0 0;
    color: #ddd;
    line-height: 1.7;
}

.account-text-link {
    display: inline;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    color: #ff8fc9;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.account-text-link:hover,
.account-text-link:focus-visible {
    color: #ffb5dd;
    background: transparent;
    outline: 2px solid rgba(255, 101, 183, .55);
    outline-offset: 2px;
}

.account-text-link:disabled {
    color: #bbb;
    background: transparent;
    cursor: not-allowed;
    opacity: 1;
    text-decoration: none;
}

.account-text-link.is-submitting:disabled {
    cursor: wait;
}

.account-resend-success {
    margin: 1.25rem 0 0;
    padding: .75rem .9rem;
    color: #e7ffed;
    background: rgba(52, 121, 73, .24);
    border: 1px solid rgba(109, 192, 132, .55);
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.7;
}

.account-verification-notices {
    display: grid;
    gap: .65rem;
    margin: 1.4rem 0 0;
    color: #aaa;
    font-size: .82rem;
    line-height: 1.7;
}

.account-verification-notices p {
    margin: 0;
}

.account-switch {
    margin: 1.5rem 0 0;
    color: #ddd;
    line-height: 1.7;
}

.account-switch a,
.account-inline-login-link {
    color: #ff8fc9;
    font-weight: 700;
    text-decoration: underline;
}

.account-forgot-password {
    margin: .75rem 0 0;
    line-height: 1.7;
}

.account-forgot-password a {
    color: #ff8fc9;
    font-weight: 700;
    text-decoration: underline;
}

.account-modal a.is-auth-submitting-disabled {
    pointer-events: none;
    cursor: wait;
    opacity: .6;
}

.account-primary-button:disabled,
.account-secondary-button:disabled {
    color: #bdbdbd;
    background: #555;
    border-color: #666;
    cursor: not-allowed;
    filter: none;
    opacity: .78;
}

.account-primary-button.is-submitting:disabled {
    color: #fff;
    background: #d72d87;
    border-color: #ef57a6;
    cursor: wait;
    opacity: .65;
}

.account-secondary-button.is-submitting:disabled {
    color: #fff;
    background: #2d2d2d;
    border-color: #666;
    cursor: wait;
    opacity: .65;
}

.account-primary-button.is-submitting::before,
.account-secondary-button.is-submitting::before {
    width: 1em;
    height: 1em;
    margin-right: .55rem;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: account-modal-spin .8s linear infinite;
}

.account-modal[hidden] {
    display: none;
}

.account-modal {
    position: fixed;
    z-index: var(--site-modal-z);
    inset: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 1rem;
}

.account-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}

.account-modal__dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 620px);
    max-height: calc(100vh - 2rem);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    overflow-y: auto;
    color: #f7f7f7;
    background: #131313;
    border: 1px solid #555;
    border-radius: 12px;
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .65);
}

.account-modal__close {
    position: absolute;
    z-index: 2;
    top: .65rem;
    right: .65rem;
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.account-modal__close span {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.account-modal__close:hover,
.account-modal__close:focus-visible {
    color: #ff8fc9;
    outline: 2px solid rgba(255, 101, 183, .6);
    outline-offset: -4px;
}

.account-modal__dialog > .account-title,
.account-modal__content > .account-title,
.account-modal__policy > .account-title {
    padding-right: 3rem;
}

.account-modal .account-form {
    gap: 1rem;
    margin-top: 1rem;
}

.account-modal .account-field {
    gap: .4rem;
}

.account-modal .account-field input[type="email"],
.account-modal .account-field input[type="password"],
.account-modal .account-field input[type="text"] {
    min-height: 52px;
}

.account-modal .account-lead {
    margin-bottom: 1rem;
}

.account-modal .account-switch,
.account-modal .account-links {
    margin-top: 1.1rem;
}

.account-modal__loading {
    min-height: 3rem;
}

.account-modal__loading::after {
    display: block;
    width: 2rem;
    height: 2rem;
    margin: .5rem auto;
    border: 3px solid #555;
    border-top-color: #ff65b7;
    border-radius: 50%;
    content: "";
    animation: account-modal-spin .8s linear infinite;
}

.account-modal__policy-scroll {
    max-height: min(60vh, 650px);
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    overflow-y: auto;
    color: #eee;
    background: #090909;
    border: 1px solid #444;
    border-radius: 6px;
}

.account-modal__policy-scroll .main-content {
    width: 100%;
    margin: 0;
}

.account-policy-content {
    min-width: 0;
}

.account-modal__policy-scroll h1 {
    font-size: 1.5rem;
}

body.account-modal-open {
    overflow: hidden;
}

@keyframes account-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-details {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.account-details > div {
    display: grid;
    grid-template-columns: minmax(8rem, 35%) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.account-details dt {
    color: #bbb;
    font-weight: 700;
}

.account-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.account-settings-section {
    margin-top: 1.75rem;
}

.account-settings-section + .account-settings-section {
    padding-top: 1.75rem;
}

.account-section-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.account-settings-section .account-details {
    margin: 0;
}

.account-settings-section .account-details > div {
    border-bottom: 0;
}

.account-delete-entry {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.account-delete-entry__link {
    color: #d98585;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.account-delete-entry__link:hover,
.account-delete-entry__link:focus-visible {
    color: #ffaaaa;
    outline: 2px solid rgba(217, 133, 133, .55);
    outline-offset: 3px;
}

.account-delete-copy {
    display: grid;
    gap: .7rem;
    padding-right: 2.75rem;
    color: #ddd;
    line-height: 1.8;
}

.account-delete-copy p {
    margin: 0;
}

.account-delete-title {
    padding-right: 2.75rem;
}

.account-delete-form {
    margin-top: 2rem;
}

.account-delete-confirmation {
    font-weight: 400;
}

.account-delete-password-field {
    margin-top: .35rem;
}

.account-delete-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.account-delete-cancel {
    flex: 1 1 0;
    min-width: 0;
    max-width: 18rem;
}

.account-delete-submit {
    flex: 1 1 0;
    min-width: 0;
    max-width: 18rem;
    color: #fff;
    background: #a83232;
    border-color: #d45858;
}

.account-delete-submit:hover,
.account-delete-submit:focus-visible {
    color: #fff;
    background: #bd3c3c;
    border-color: #ed7070;
    outline-color: rgba(224, 92, 92, .7);
}

.account-delete-submit:disabled {
    color: #d0baba;
    background: #563434;
    border-color: #714747;
    cursor: not-allowed;
    filter: none;
    opacity: .72;
}

.account-delete-submit.is-submitting:disabled {
    color: #fff;
    background: #a83232;
    border-color: #d45858;
    cursor: wait;
    opacity: .72;
}

.account-delete-complete {
    display: grid;
    gap: .75rem;
    justify-items: center;
    padding: 1rem 0 .25rem;
    text-align: center;
}

.account-delete-complete p {
    margin: 0;
    color: #ddd;
    line-height: 1.8;
}

.account-delete-complete .account-delete-complete__message {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 560px) {
    .account-main {
        width: min(100% - 1rem, 720px);
        margin-top: 1rem;
    }

    .account-details > div {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .account-modal {
        padding: .5rem;
    }

    .account-modal__dialog {
        max-height: calc(100vh - 1rem);
        padding: 1.25rem 1rem;
        border-radius: 8px;
    }

    .account-modal__close {
        top: .25rem;
        right: .25rem;
    }

    .account-modal .account-title {
        margin-bottom: .75rem;
        font-size: 1.5rem;
    }

    .account-title--invalid-reset {
        font-size: 1.35rem;
        line-height: 1.55;
    }

    .account-links--invalid-reset {
        display: grid;
        gap: 1rem;
        justify-items: start;
    }

    .account-modal .account-help,
    .account-modal .account-field-error {
        font-size: .85rem;
    }

    .account-delete-copy {
        padding-right: 2.25rem;
    }

    .account-delete-actions {
        flex-direction: column;
        gap: .65rem;
        width: 100%;
    }

    .account-delete-cancel,
    .account-delete-submit {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }
}
