/* Keep the account entry experience aligned with the portal's flat visual
   language without changing the same theme components elsewhere. */
body.pph-account-auth-page .vape-shop-login,
body.pph-account-auth-page .vape-shop-login__lost-password,
body.pph-account-auth-page .login-page__content-item,
body.pph-account-auth-page .vape-shop-login-input-container,
body.pph-account-auth-page .vape-shop-login-input,
body.pph-account-auth-page .vape-shop-login__submit,
body.pph-account-auth-page .woocommerce-error {
    border-radius: 0 !important;
}

body.pph-account-auth-page .login-page__content-item svg,
body.pph-account-auth-page .login-page__content-item use {
    stroke-width: 1.9 !important;
}

body.pph-account-auth-page .pph-auth-divider {
    align-items: center;
    color: #8a818e;
    display: flex;
    font-size: 13px;
    gap: 12px;
    margin: 22px 0;
    text-align: center;
}

body.pph-account-auth-page .pph-auth-divider::before,
body.pph-account-auth-page .pph-auth-divider::after {
    background: #e5dfe8;
    content: "";
    flex: 1 1 auto;
    height: 1px;
}

body.pph-account-auth-page .pph-auth-primary,
body.pph-account-auth-page .pph-auth-secondary,
body.pph-account-auth-page .pph-auth-tab {
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    min-height: 50px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

body.pph-account-auth-page .pph-auth-primary {
    align-items: center;
    background: var(--wp--preset--gradient--vape-shop-gradient, linear-gradient(90deg, #d52f92, #7e43a6));
    border: 1px solid transparent;
    color: #fff;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 13px 18px;
    width: 100%;
}

body.pph-account-auth-page .pph-auth-primary::after {
    background: currentColor;
    content: "";
    display: block;
    flex: 0 0 18px;
    height: 18px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") center / contain no-repeat;
    width: 18px;
}

body.pph-account-auth-page .pph-auth-secondary {
    background: #fff;
    border: 1px solid #cfc7d3;
    color: #3a3244;
    padding: 13px 18px;
    width: 100%;
}

body.pph-account-auth-page .pph-auth-primary:hover,
body.pph-account-auth-page .pph-auth-primary:focus-visible {
    filter: brightness(.94);
}

body.pph-account-auth-page .pph-auth-secondary:hover,
body.pph-account-auth-page .pph-auth-secondary:focus-visible {
    border-color: #7f3ca0;
    color: #7f3ca0;
}

body.pph-account-auth-page .pph-auth-primary:focus-visible,
body.pph-account-auth-page .pph-auth-secondary:focus-visible,
body.pph-account-auth-page .pph-auth-tab:focus-visible,
body.pph-account-auth-page .pph-auth-link:focus-visible,
body.pph-account-auth-page .pph-auth-otp-stage input:focus-visible {
    outline: 2px solid #7f3ca0;
    outline-offset: 2px;
}

body.pph-account-auth-page .pph-auth-primary:disabled,
body.pph-account-auth-page .pph-auth-secondary:disabled,
body.pph-account-auth-page .pph-auth-link:disabled {
    cursor: wait;
    opacity: .55;
}

body.pph-account-auth-page .pph-auth-otp-panel {
    border-top: 0;
    margin-top: 22px;
    padding-top: 0;
}

body.pph-account-auth-page .pph-auth-otp-panel[hidden],
body.pph-account-auth-page [data-pph-otp-stage][hidden] {
    display: none !important;
}

body.pph-account-auth-page .pph-auth-otp-copy h3,
body.pph-account-auth-page .pph-password-reset-copy h3,
body.pph-account-auth-page .pph-lost-password-auth h2 {
    color: #231d27;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.2;
    margin: 0 0 8px;
}

body.pph-account-auth-page .pph-auth-otp-copy p,
body.pph-account-auth-page .pph-password-reset-copy p,
body.pph-account-auth-page .pph-password-reset-sent p {
    color: #6e6573;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

body.pph-account-auth-page .pph-auth-otp-stage {
    border-top: 1px solid #e5dfe8;
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
}

body.pph-account-auth-page .pph-auth-otp-stage .pph-auth-primary {
    margin-top: 6px;
}

body.pph-account-auth-page .pph-auth-otp-stage label {
    color: #3a3244;
    font-size: 14px;
    font-weight: 600;
}

body.pph-account-auth-page .pph-auth-otp-stage input {
    appearance: none;
    background: #fff;
    border: 1px solid #cfc7d3;
    border-radius: 0;
    box-sizing: border-box;
    color: #231d27;
    font: inherit;
    font-size: 17px;
    height: 54px;
    padding: 0 15px;
    width: 100%;
}

body.pph-account-auth-page .pph-auth-otp-stage input[data-pph-otp-code] {
    font-size: 25px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    letter-spacing: .25em;
    text-align: center;
}

body.pph-account-auth-page .pph-auth-code-sent {
    color: #6e6573;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

body.pph-account-auth-page .pph-auth-code-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

body.pph-account-auth-page .pph-auth-link {
    background: transparent;
    border: 0;
    color: #7f3ca0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.pph-account-auth-page .pph-auth-back {
    margin-top: 10px;
}

body.pph-account-auth-page .pph-auth-status {
    color: #5f5664;
    font-size: 14px;
    line-height: 1.45;
    margin: 14px 0 0;
    min-height: 20px;
}

body.pph-account-auth-page .pph-auth-status:empty {
    display: none;
}

body.pph-account-auth-page .pph-auth-status.is-error {
    color: #a3323f;
}

body.pph-account-auth-page .pph-auth-status.is-success {
    color: #1f7a4d;
}

body.pph-account-auth-page .pph-lost-password-auth {
    background: #fff;
    border: 1px solid #e5dfe8;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 550px;
    padding: 28px;
    width: 100%;
}

body.pph-account-auth-lost-password main .woocommerce {
    align-items: stretch;
    display: block;
}

body.pph-account-auth-page .pph-auth-tabs {
    border-bottom: 1px solid #ddd6e1;
    display: flex;
    gap: 24px;
    margin: 22px 0 0;
}

body.pph-account-auth-page .pph-auth-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #756c79;
    margin-bottom: -1px;
    min-height: 46px;
    padding: 8px 0;
    text-align: left;
}

body.pph-account-auth-page .pph-auth-tab.is-active {
    border-bottom-color: #7f3ca0;
    color: #231d27;
}

body.pph-account-auth-page .pph-lost-password-auth .pph-auth-otp-panel {
    border-top: 0;
    margin-top: 0;
    padding-top: 25px;
}

body.pph-account-auth-page .pph-lost-password-auth form.lost_reset_password {
    background: transparent;
    border: 0;
    box-sizing: border-box;
    max-width: none;
    padding: 25px 0 0;
    width: 100%;
}

body.pph-account-auth-page .pph-password-reset-copy h3 {
    margin-bottom: 8px;
}

body.pph-account-auth-page .pph-password-reset-stage {
    margin-top: 22px;
}

body.pph-account-auth-page .pph-password-reset-stage input {
    margin: 0;
}

body.pph-account-auth-lost-password.pph-auth-mode-otp form.lost_reset_password,
body.pph-account-auth-lost-password.pph-auth-mode-reset #pph-otp-login-panel {
    display: none !important;
}

body.pph-account-auth-lost-password.pph-auth-mode-reset form.lost_reset_password {
    display: block;
    margin: 0;
}

body.pph-account-auth-page .pph-password-reset-sent {
    display: grid;
    gap: 0;
}

body.pph-account-auth-page .pph-password-reset-sent__icon {
    align-items: center;
    background: #edf8f2;
    color: #238357;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    margin-bottom: 20px;
    width: 42px;
}

body.pph-account-auth-page .pph-password-reset-sent__icon svg {
    height: 23px;
    width: 23px;
}

body.pph-account-auth-page .pph-password-reset-sent__copy {
    border-bottom: 1px solid #e5dfe8;
    padding-bottom: 22px;
}

body.pph-account-auth-page .pph-password-reset-sent__hint {
    margin-top: 8px !important;
}

body.pph-account-auth-page .pph-password-reset-sent__link {
    margin-top: 22px;
    text-decoration: none;
}

body.pph-account-auth-page .vape-shop-login.pph-otp-is-open > .vape-shop-login__title,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open > .vape-shop-login__text,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open .vape-shop-login__form > .vape-shop-login-input-container,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open .vape-shop-login__form > .vape-shop-login__checkbox,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open .vape-shop-login__form > .vape-shop-login__bottom,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open .vape-shop-login__form > .vape-shop-login__error,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open .pph-auth-divider,
body.pph-account-auth-page .vape-shop-login.pph-otp-is-open [data-pph-otp-open] {
    display: none !important;
}

@media (max-width: 782px) {
    body.pph-account-auth-page .pph-lost-password-auth {
        border-left: 0;
        border-right: 0;
        max-width: none;
        padding: 28px 20px 36px;
        width: 100%;
    }

    body.pph-account-auth-page .pph-auth-tabs {
        gap: 18px;
    }

    body.pph-account-auth-page .pph-auth-tab {
        flex: 1 1 0;
        font-size: 14px;
    }

    body.pph-account-auth-page .vape-shop-login,
    body.pph-account-auth-page .vape-shop-login__lost-password {
        padding: 32px 20px 38px !important;
    }

    body.pph-account-auth-page .pph-auth-otp-panel,
    body.pph-account-auth-page .pph-lost-password-auth .pph-auth-otp-panel {
        padding-top: 22px;
    }

    body.pph-account-auth-page .pph-auth-otp-copy h3,
    body.pph-account-auth-page .pph-password-reset-copy h3,
    body.pph-account-auth-page .pph-lost-password-auth h2 {
        font-size: 22px;
    }

    body.pph-account-auth-page .pph-lost-password-auth form.lost_reset_password {
        padding-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pph-account-auth-page .pph-auth-primary,
    body.pph-account-auth-page .pph-auth-secondary,
    body.pph-account-auth-page .pph-auth-tab {
        transition: none;
    }
}

/* Focused password setup: use the same compact form scale as the portal's
   OTP and account forms without adding another card inside the canvas. */
body.pph-account-auth-set-password {
    --pph-auth-canvas: #fff;
    --pph-auth-border: #d8cfdc;
    --pph-auth-ink: #211c25;
    --pph-auth-muted: #625a69;
    --pph-auth-accent: #812aa4;
    --pph-auth-success: #14945d;
    --pph-auth-error: #e23648;
    background: var(--pph-auth-canvas);
}

body.pph-account-auth-set-password .wp-block-post-title {
    display: none !important;
}

body.pph-account-auth-set-password main.wp-block-group {
    background: var(--pph-auth-canvas) !important;
    box-sizing: border-box;
    min-height: min(640px, calc(100vh - 190px));
    padding: clamp(36px, 4vw, 52px) 20px clamp(48px, 6vw, 72px) !important;
}

body.pph-account-auth-set-password main.wp-block-group::after {
    display: none !important;
}

body.pph-account-auth-set-password .entry-content,
body.pph-account-auth-set-password .entry-content > .woocommerce {
    box-sizing: border-box;
    display: block !important;
    margin-inline: auto !important;
    max-width: 560px !important;
    width: 100%;
}

body.pph-account-auth-set-password .pph-set-password-form {
    margin: 0;
}

body.pph-account-auth-set-password .pph-set-password-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--pph-auth-ink);
    overflow: visible;
}

body.pph-account-auth-set-password .pph-set-password-card__header {
    display: block;
    padding: 0;
}

body.pph-account-auth-set-password .pph-set-password-card h1 {
    color: var(--pph-auth-ink);
    display: block !important;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 0;
    opacity: 1 !important;
    scroll-margin-top: 120px;
    visibility: visible !important;
}

body.pph-account-auth-set-password .pph-set-password-card__header p {
    color: var(--pph-auth-muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 10px 0 0;
    max-width: 560px;
}

body.pph-account-auth-set-password .pph-set-password-card__body {
    padding: 28px 0 0;
}

body.pph-account-auth-set-password main .woocommerce .pph-set-password-card .form-row {
    float: none;
    height: auto;
    margin: 0 0 20px;
    position: static;
    width: 100%;
}

body.pph-account-auth-set-password main .woocommerce .pph-set-password-card .form-row label {
    color: var(--pph-auth-ink);
    display: block;
    font-size: 14px;
    font-weight: 600;
    left: auto;
    line-height: 1.3;
    margin-bottom: 8px;
    pointer-events: auto;
    position: static;
    top: auto;
    transform: none !important;
    transition: none;
}

body.pph-account-auth-set-password main .woocommerce .pph-set-password-card .form-row input.input-text {
    appearance: none;
    background: #fff !important;
    border: 1px solid var(--pph-auth-border);
    border-radius: 0;
    box-sizing: border-box;
    color: var(--pph-auth-ink);
    font: inherit;
    font-size: 17px !important;
    font-weight: 400;
    height: 54px !important;
    padding: 0 15px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

body.pph-account-auth-set-password main .woocommerce .pph-set-password-card .form-row input[readonly] {
    background: #faf8fb !important;
    color: var(--pph-auth-muted);
    cursor: default;
}

body.pph-account-auth-set-password main .woocommerce .pph-set-password-card .form-row input.input-text:focus {
    background: #fff !important;
    border-color: var(--pph-auth-accent);
    box-shadow: 0 0 0 3px rgba(143, 58, 167, .12);
    outline: 0;
}

body.pph-account-auth-set-password .pph-set-password-input-wrap {
    display: block;
    position: relative;
}

body.pph-account-auth-set-password [data-pph-password-field="primary"] input.input-text {
    padding-right: 104px !important;
}

body.pph-account-auth-set-password [data-pph-password-field="confirmation"] input.input-text {
    padding-right: 50px !important;
}

body.pph-account-auth-set-password .pph-set-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #8e8596;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-height: 40px;
    padding: 0 4px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

body.pph-account-auth-set-password .pph-set-password-toggle:focus-visible {
    outline: 2px solid var(--pph-auth-accent);
    outline-offset: 2px;
}

body.pph-account-auth-set-password .pph-set-password-check {
    color: var(--pph-auth-accent);
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

body.pph-account-auth-set-password .pph-set-password-check .pph-heroicon {
    display: block;
    height: 20px;
    width: 20px;
}

body.pph-account-auth-set-password .pph-set-password-field.is-valid .pph-set-password-check {
    display: block;
}

body.pph-account-auth-set-password [data-pph-password-field="primary"].is-valid .pph-set-password-check {
    display: none;
}

body.pph-account-auth-set-password .pph-set-password-field.is-invalid input.input-text {
    border-color: #ef9aa5;
}

body.pph-account-auth-set-password .pph-set-password-field.is-invalid input.input-text:focus {
    border-color: var(--pph-auth-error);
    box-shadow: 0 0 0 3px rgba(226, 54, 72, .1);
}

body.pph-account-auth-set-password .pph-set-password-status {
    display: none;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 6px;
}

body.pph-account-auth-set-password .pph-set-password-field.is-valid .pph-set-password-status,
body.pph-account-auth-set-password .pph-set-password-field.is-invalid .pph-set-password-status {
    display: block;
}

body.pph-account-auth-set-password .pph-set-password-field.is-valid .pph-set-password-status {
    color: var(--pph-auth-success);
}

body.pph-account-auth-set-password .pph-set-password-field.is-invalid .pph-set-password-status {
    color: var(--pph-auth-error);
}

body.pph-account-auth-set-password [data-pph-password-field="confirmation"].is-valid .pph-set-password-status {
    display: none;
}

body.pph-account-auth-set-password .woocommerce-password-input .show-password-input {
    display: none !important;
}

body.pph-account-auth-set-password .pph-set-password-submit {
    align-items: center;
    background: var(--wp--preset--gradient--vape-shop-gradient, linear-gradient(90deg, #d52f92, #7e43a6)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 13px 18px !important;
    transition: filter .15s ease, opacity .15s ease;
    width: 100%;
}

body.pph-account-auth-set-password .pph-set-password-submit svg {
    height: 18px;
    width: 18px;
}

body.pph-account-auth-set-password .pph-set-password-submit:hover {
    filter: brightness(.95);
}

body.pph-account-auth-set-password .pph-set-password-submit:focus-visible {
    outline: 2px solid var(--pph-auth-accent);
    outline-offset: 3px;
}

body.pph-account-auth-set-password .pph-set-password-submit:disabled {
    background: #eee8f1 !important;
    color: #4d4552 !important;
    cursor: not-allowed;
    opacity: 1;
}

body.pph-account-auth-set-password .pph-set-password-submit:disabled svg {
    display: none;
}

body.pph-account-auth-set-password .pph-set-password-card__footnote {
    color: var(--pph-auth-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 18px 0 0;
    text-align: left;
}

@media (max-width: 560px) {
    body.pph-account-auth-set-password main.wp-block-group {
        min-height: 0;
        padding: 28px 16px 44px !important;
    }

    body.pph-account-auth-set-password .pph-set-password-card h1 {
        font-size: 28px;
    }

    body.pph-account-auth-set-password .pph-set-password-card__header p {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 10px;
    }

    body.pph-account-auth-set-password .pph-set-password-card__body {
        padding-top: 24px;
    }

    body.pph-account-auth-set-password main .woocommerce .pph-set-password-card .form-row input.input-text {
        font-size: 16px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.pph-account-auth-set-password [data-pph-password-field="primary"] input.input-text {
        padding-right: 96px !important;
    }

    body.pph-account-auth-set-password [data-pph-password-field="confirmation"] input.input-text {
        padding-right: 46px !important;
    }

    body.pph-account-auth-set-password .pph-set-password-toggle {
        font-size: 13px;
        right: 10px;
    }

    body.pph-account-auth-set-password .pph-set-password-check {
        right: 14px;
    }

    body.pph-account-auth-set-password .pph-set-password-submit {
        font-size: 16px !important;
    }
}
