body.account-access-page {
    color: #f4f7fb;
}

.account-access-page > .nav {
    position: fixed;
    background: #181f2b !important;
}

.account-access-page > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: calc(var(--appbar-height, 64px) + var(--appbar-top-gap, 12px) + 32px) 24px 40px;
}

.account-access-page > .footer {
    display: none;
}

.account-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - var(--appbar-height, 64px) - var(--appbar-top-gap, 12px) - 72px);
    width: 100%;
}

.account-panel {
    width: 100%;
    max-width: 460px;
    padding: 32px;
    border: 1px solid #344153;
    border-radius: 32px;
    background: rgba(24, 31, 43, .98);
}

.account-panel--register {
    max-width: 560px;
}

.account-header {
    margin-bottom: 28px;
    text-align: left;
}

.account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid #79513b;
    border-radius: 50%;
    background: #352a25;
    color: #ffad84;
}

.account-header h1 {
    margin: 0 0 8px;
    color: #f4f7fb;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.account-header p {
    margin: 0;
    color: #b2bdcb;
    font-size: .925rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.account-email {
    display: inline-block;
    margin-top: 6px;
    color: #f4f7fb;
    font-weight: 500;
}

.account-panel .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-panel .form-group {
    margin-bottom: 20px;
}

.account-panel .form-label {
    display: block;
    margin-bottom: 8px;
    color: #c1cad6;
    font-size: .875rem;
    font-weight: 500;
}

.account-panel :is(.form-input, .otp-input, .code-input) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 17px;
    border: 1px solid #455165;
    border-radius: 32px;
    background: #202938;
    color: #f4f7fb;
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.5;
    transition: border-color 150ms ease;
}

.account-panel :is(.form-input, .otp-input, .code-input)::placeholder {
    color: #92a1b4;
    opacity: 1;
}

.account-panel :is(.form-input, .otp-input, .code-input):focus {
    border-color: #fe5000;
    box-shadow: none;
}

.account-panel .password-wrapper {
    position: relative;
}

.account-panel .password-wrapper .form-input {
    padding-right: 52px;
}

.account-panel .password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #b2bdcb;
    cursor: pointer;
}

.account-panel .password-toggle:hover {
    background: #2e394a;
    color: #f4f7fb;
}

.account-panel .btn-primary {
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 32px;
    background: #fe5000;
    color: #fff;
    font-size: .95rem;
    box-shadow: none;
}

.account-panel .btn-primary:hover {
    background: #e54700;
    box-shadow: none;
    transform: none;
}

.account-panel button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.account-panel .btn-primary svg {
    flex-shrink: 0;
    margin-right: 0 !important;
}

.account-panel a {
    color: #ffad84;
    text-decoration: none;
}

.account-panel a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-forgot {
    margin-top: 10px;
    text-align: right;
    font-size: .85rem;
}

.account-panel .auth-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #344153;
    color: #b2bdcb;
    text-align: center;
    font-size: .875rem;
    line-height: 1.7;
}

.account-panel .auth-footer p + p {
    margin-top: 8px;
}

.account-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: .85rem;
}

.account-panel .account-back {
    color: #b2bdcb;
}

.account-panel :is(.otp-input, .code-input) {
    min-height: 56px;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .4em;
    padding-left: calc(17px + .4em);
    text-align: center;
}

.account-panel .otp-input-container {
    margin-bottom: 20px;
}

.account-panel .code-input {
    margin-bottom: 20px;
}

.account-panel .resend-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #344153;
    color: #b2bdcb;
    font-size: .875rem;
    text-align: center;
}

.account-panel .resend-text {
    margin-bottom: 6px;
}

.account-panel .resend-btn {
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 32px;
    background: transparent;
    color: #ffad84;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.account-panel .resend-btn:hover:not(:disabled) {
    background: #352a25;
}

.account-panel :is(.help-text, .info-box) {
    margin-top: 20px;
    color: #b2bdcb;
    font-size: .8125rem;
    line-height: 1.65;
}

.account-panel .info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.account-panel .info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #92a1b4;
}

.account-notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #455165;
    border-radius: 16px;
    background: #202938;
    color: #d4dce6;
    font-size: .875rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.account-notice--error {
    border-color: #75434d;
    background: #33212a;
    color: #ffb4ba;
}

.account-notice--success {
    border-color: #42685a;
    background: #19372f;
    color: #a7e9c5;
}

.account-panel .password-strength {
    height: 4px;
    margin: 10px 2px 0;
    border-radius: 4px;
    background: #344153;
    overflow: hidden;
}

.account-panel .password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 150ms ease;
}

.account-panel .password-strength-bar.weak { width: 25%; background: #ff8890; }
.account-panel .password-strength-bar.fair { width: 50%; background: #f4c16a; }
.account-panel .password-strength-bar.good { width: 75%; background: #90cdf4; }
.account-panel .password-strength-bar.strong { width: 100%; background: #62c78f; }

.account-panel .password-requirements {
    margin-top: 12px;
    color: #b2bdcb;
    font-size: .75rem;
    line-height: 1.5;
}

.account-panel .password-requirements ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.account-panel .password-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.account-panel .password-requirements li.valid {
    color: #8be0b4;
}

.account-panel .password-requirements svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .account-access-page > .container {
        padding: calc(var(--appbar-height, 56px) + var(--appbar-top-gap, 8px) + 24px) 16px 24px;
    }

    .account-shell {
        min-height: calc(100svh - var(--appbar-height, 56px) - var(--appbar-top-gap, 8px) - 48px);
    }

    .account-panel {
        padding: 26px 22px;
    }

    .account-panel :is(.form-input, .otp-input, .code-input) {
        font-size: 1rem;
    }

    .account-panel :is(.otp-input, .code-input) {
        font-size: 1.4rem;
    }

    .account-panel .form-row {
        gap: 12px;
    }

    .account-panel .password-requirements ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .account-panel .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .account-panel {
        padding: 24px 18px;
    }
}
