.account-auth-page [hidden] {
    display: none !important;
}

.account-auth-page {
    min-height: calc(100vh - 40px);
    color: var(--ph-ink, #383338);
    background: var(--ph-surface, #f4f4f6);
}

.account-auth__top-nav .top-nav__inner {
    padding-bottom: 0;
}

.account-auth__top-nav .breadcrumbs {
    margin-bottom: 0;
}

.account-auth-page .account-auth {
    width: 100%;
    padding: 45px 20px 90px;
}

.account-auth-page .account-auth__inner {
    width: 100%;
    max-width: 580px;
    padding: 0;
}

.account-auth-page .account-auth__title {
    margin-bottom: 34px;
    color: var(--ph-ink, #383338);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.account-auth-page .account-auth__intro {
    max-width: 520px;
    margin: -12px auto 32px;
    color: var(--ph-muted, #685f67);
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
}

.account-auth-page .account-auth__form {
    padding-bottom: 0;
}

.account-auth__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
    border: 1px solid var(--ph-primary, #383338);
}

.account-auth__tab {
    min-height: 52px;
    padding: 10px 16px;
    color: var(--ph-primary, #383338);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.account-auth__tab + .account-auth__tab {
    border-left: 1px solid var(--ph-primary, #383338);
}

.account-auth__tab--active {
    color: #fff;
    background: var(--ph-primary, #383338);
}

.account-auth__field {
    margin-bottom: 18px;
}

.account-auth__label {
    display: block;
    margin-bottom: 8px;
    color: var(--ph-ink, #383338);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.account-auth-page .account-auth__input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    color: var(--ph-ink, #383338);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--ph-border, rgba(56, 51, 56, 0.22));
    border-radius: 0;
    font-size: 16px;
    outline: none;
    text-transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.account-auth-page .account-auth__input::placeholder {
    color: var(--ph-muted, #685f67);
    text-transform: none;
}

.account-auth-page .account-auth__input:focus {
    background: #fff;
    border-color: var(--ph-primary, #383338);
    box-shadow: 0 0 0 3px rgba(56, 51, 56, 0.12);
}

.account-auth-page .account-auth__input--error {
    border-color: var(--ph-accent, #ef5a37);
}

.account-auth__field-error {
    margin-top: 7px;
    color: #6f2948;
    font-size: 13px;
    line-height: 1.4;
}

.account-auth__choices {
    margin: 4px 0 22px;
}

.account-auth__choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
    color: var(--ph-ink, #383338);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
}

.account-auth__choice input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: auto;
    accent-color: var(--ph-primary, #383338);
}

.account-auth__choice a,
.account-auth__intro--links a {
    color: var(--ph-primary, #383338);
    border-bottom: 1px solid currentColor;
    text-decoration: none;
}

.account-auth__choice--agreement {
    margin-bottom: 8px;
}

.account-auth__link {
    display: block;
    width: max-content;
    max-width: 100%;
    color: var(--ph-primary, #383338);
    border-bottom: 1px solid currentColor;
    line-height: 1.35;
    text-decoration: none;
}

.account-auth__forgotten {
    margin: 0 0 22px;
    font-size: 14px;
}

.account-auth__register {
    margin: 24px auto 0;
    font-size: 15px;
    text-align: center;
}

.account-auth__message {
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.account-auth__message--empty {
    display: none;
}

.account-auth__message--error {
    color: #6f2948;
    background: var(--ph-accent-soft, #fce5df);
    border-left: 3px solid var(--ph-accent, #ef5a37);
}

.account-auth__message--success {
    color: var(--ph-primary-dark, #272327);
    background: var(--ph-surface-alt, #eaeaea);
    border-left: 3px solid var(--ph-primary, #383338);
}

.account-auth--success .account-auth__inner {
    max-width: 680px;
}

.account-auth__success-copy {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.6;
}

.account-auth__success-copy p {
    margin: 0 0 12px;
}

.account-auth__success-copy p:last-child {
    margin-bottom: 0;
}

.account-auth__success-copy a {
    color: var(--ph-primary-dark, #272327);
    border-bottom: 1px solid currentColor;
    text-decoration: none;
}

.account-auth-page .account-auth__submit {
    width: 100%;
    height: 56px;
    margin-top: 4px;
    color: #fff;
    background: var(--ph-primary, #383338);
    border: 1px solid var(--ph-primary, #383338);
    font-size: 14px;
    font-weight: 700;
}

.account-auth-page .account-auth__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.account-auth-page .account-auth__submit::before {
    display: none;
}

.account-auth-page .account-auth__submit .btn__btn-tx {
    color: #fff;
    mix-blend-mode: normal;
}

.account-auth__other {
    padding-top: 30px;
    margin-top: 42px;
    border-top: 1px solid var(--ph-border, rgba(56, 51, 56, 0.22));
}

.account-auth__other-title {
    margin-bottom: 20px;
    color: var(--ph-muted, #685f67);
    font-size: 13px;
}

.account-auth__google {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 18px;
    color: var(--ph-primary-dark, #272327);
    background: var(--ph-surface-alt, #eaeaea);
    border: 1px solid var(--ph-border, rgba(56, 51, 56, 0.22));
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.account-auth__google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    color: #fff;
    background: var(--ph-accent, #ef5a37);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

@media (hover: hover) {
    .account-auth__tab:hover:not(.account-auth__tab--active) {
        background: rgba(56, 51, 56, 0.08);
    }

    .account-auth-page .account-auth__submit:hover,
    .account-auth__google:hover {
        color: #fff;
        background: var(--ph-accent, #ef5a37);
        border-color: var(--ph-accent, #ef5a37);
    }
}

@media screen and (min-width: 768px) {
    .account-auth-page {
        min-height: calc(100vh - 50px);
    }

    .account-auth-page .account-auth {
        padding: 70px 40px 120px;
    }

    .account-auth-page .account-auth__inner {
        padding: 0;
    }
}

@media screen and (max-width: 479px) {
    .account-auth-page .account-auth {
        padding-top: 34px;
    }

    .account-auth-page .account-auth__title {
        margin-bottom: 28px;
        font-size: 36px;
    }

    .account-auth__tab {
        min-height: 50px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
        letter-spacing: 0.02em;
    }
}
