/* =========================================================
   AUTH PAGE
========================================================= */

.tp-auth-page {
    min-height: 100vh;
    margin: 0;
    background: #f6f7f9;
}


/* =========================================================
   WRAPPER
========================================================= */

.tp-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}


.tp-auth-container {
    width: 100%;
    max-width: 1100px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   VISUAL SIDE
========================================================= */

.tp-auth-visual {
    position: relative;
    background: #e7604c;
    color: #fff;
    overflow: hidden;
}


.tp-auth-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -180px;
    bottom: -170px;
    background: rgba(255, 255, 255, 0.10);
}


.tp-auth-visual::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    left: -120px;
    top: 45%;
    background: rgba(255, 255, 255, 0.08);
}


.tp-auth-visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 680px;
    padding: 42px;
    display: flex;
    flex-direction: column;
}


.tp-auth-logo,
.tp-auth-mobile-logo {
    color: inherit;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
}


.tp-auth-logo:hover,
.tp-auth-mobile-logo:hover {
    color: inherit;
}


.tp-auth-visual-copy {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 420px;
}


.tp-auth-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.85;
}


.tp-auth-visual-copy h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 400;
}


.tp-auth-visual-copy h1 strong {
    font-weight: 700;
}


.tp-auth-visual-copy p {
    max-width: 370px;
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}


.tp-auth-visual-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    opacity: 0.9;
}


.tp-auth-visual-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   FORM SIDE
========================================================= */

.tp-auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}


.tp-auth-form-container {
    width: 100%;
    max-width: 420px;
}


.tp-auth-mobile-logo {
    display: none;
    color: #e7604c;
    margin-bottom: 40px;
}


/* =========================================================
   HEADING
========================================================= */

.tp-auth-step {
    display: inline-block;
    margin-bottom: 12px;
    color: #e7604c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


.tp-auth-heading h2 {
    margin: 0;
    color: #202124;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}


.tp-auth-heading p {
    margin: 10px 0 30px;
    color: #73777d;
    font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.tp-auth-form {
    width: 100%;
}


.tp-auth-field {
    margin-bottom: 18px;
}


.tp-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 12px;
    font-weight: 600;
}


.tp-auth-input {
    position: relative;
}


.tp-auth-input > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94999f;
    font-size: 16px;
    pointer-events: none;
}


.tp-auth-input input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 44px;
    border: 1px solid #e1e3e6;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #252525;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.tp-auth-input input::placeholder {
    color: #a4a8ad;
}


.tp-auth-input input:focus {
    border-color: #e7604c;
    box-shadow: 0 0 0 3px rgba(231, 96, 76, 0.10);
}


.tp-auth-input input.is-invalid {
    border-color: #e7604c;
}


/* =========================================================
   SUBMIT
========================================================= */

.tp-auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 9px;
    background: #e7604c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.tp-auth-submit:hover {
    background: #d95442;
}


.tp-auth-submit:active {
    transform: translateY(1px);
}


.tp-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* =========================================================
   STATUS
========================================================= */

.tp-auth-status {
    margin: 8px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}


.tp-auth-status.is-error {
    background: #fff1ef;
    color: #b83c2f;
}


.tp-auth-status.is-success {
    background: #edf8f1;
    color: #247342;
}


/* =========================================================
   SWITCH
========================================================= */

.tp-auth-switch {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #777;
}


.tp-auth-switch a {
    margin-left: 5px;
    color: #e7604c;
    font-weight: 600;
    text-decoration: none;
}


.tp-auth-switch a:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.tp-auth-security-note {
    margin: 25px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    color: #92969b;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}


.tp-auth-security-note i {
    flex: 0 0 auto;
    color: #e7604c;
}

.tp-auth-status {
    margin: 0 0 18px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.tp-auth-status.is-error {
    background: #fff1f0;
    border: 1px solid #f4c5bf;
    color: #b42318;
}

.tp-auth-status.is-success {
    background: #effaf3;
    border: 1px solid #b7dfc5;
    color: #18753c;
}

.tp-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tp-auth-submit i.bi-arrow-repeat {
    animation: tpAuthSpin 0.8s linear infinite;
}

@keyframes tpAuthSpin {
    to {
        transform: rotate(360deg);
    }
}
.tp-auth-honeypot {
    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;
}

.tp-auth-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    font-size: 13px;
    color: #777;
    text-align: center;
}

.tp-auth-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #e7604c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tp-auth-link-button:hover {
    text-decoration: underline;
}

.tp-auth-link-button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.tp-auth-switch {
    margin-top: 20px;
}

/* =========================================================
   LOGIN AUTHENTICATION METHOD STEP
   ========================================================= */

.tp-login-step {
    width: 100%;
}

.tp-login-step[hidden] {
    display: none !important;
}


/* =========================================================
   AUTHENTICATION METHODS
   ========================================================= */

.tp-login-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
}


/* =========================================================
   METHOD BUTTON
   ========================================================= */

.tp-login-method {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    min-height: 88px;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 16px 18px;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    background: #ffffff;

    color: #171717;

    text-align: left;

    cursor: pointer;

    font-family: inherit;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.tp-login-method:hover {
    border-color: #e7604c;
    background: #fff9f7;

    box-shadow:
        0 8px 24px rgba(231, 96, 76, 0.10);

    transform: translateY(-1px);
}


.tp-login-method:focus-visible {
    outline: none;

    border-color: #e7604c;

    box-shadow:
        0 0 0 3px rgba(231, 96, 76, 0.16);
}


/* =========================================================
   METHOD ICON
   ========================================================= */

.tp-login-method-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #fff1ed;

    color: #e7604c;

    font-size: 21px;
}


.tp-login-method:hover .tp-login-method-icon {
    background: #e7604c;
    color: #ffffff;
}


/* =========================================================
   METHOD CONTENT
   ========================================================= */

.tp-login-method-content {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}


.tp-login-method-content strong {
    display: block;

    color: #171717;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.35;
}


.tp-login-method-content small {
    display: block;

    color: #777777;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.45;
}


/* =========================================================
   METHOD ARROW
   ========================================================= */

.tp-login-method > .bi-chevron-right {
    flex: 0 0 auto;

    color: #999999;

    font-size: 17px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.tp-login-method:hover > .bi-chevron-right {
    color: #e7604c;

    transform: translateX(3px);
}


/* =========================================================
   CHANGE EMAIL
   ========================================================= */

.tp-auth-back-button {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 22px;
    padding: 0;

    border: 0;

    background: transparent;

    color: #666666;

    font-family: inherit;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.4;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.tp-auth-back-button:hover {
    color: #e7604c;
}


.tp-auth-back-button:focus-visible {
    outline: none;

    color: #e7604c;

    text-decoration: underline;
}


.tp-auth-back-button i {
    font-size: 14px;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.tp-auth-forgot-password {
    width: 100%;

    margin-top: 16px;

    text-align: center;
}


.tp-auth-forgot-password a {
    color: #e7604c;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.tp-auth-forgot-password a:hover {
    color: #c94e3d;

    text-decoration: underline;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.tp-auth-input {
    position: relative;
}


.tp-auth-password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #777777;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.tp-auth-password-toggle:hover {
    color: #e7604c;
}


.tp-auth-password-toggle:focus-visible {
    outline: none;

    color: #e7604c;
}


/*
 * Leave room for the eye icon.
 */

#tpLoginPassword {
    padding-right: 52px;
}


/* =========================================================
   LOGIN METHOD EMAIL
   ========================================================= */

#tpLoginMethodEmail {
    word-break: break-word;
}

/* =========================================================
   CUSTOMER ACCOUNT
   ========================================================= */

.tp-header-account {
    position: relative;
}


.tp-header-account-trigger {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 5px 8px 5px 5px;

    border: 1px solid transparent;
    border-radius: 50px;

    background: transparent;

    color: #222;

    font-family: inherit;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


.tp-header-account-trigger:hover,
.tp-header-account-trigger[aria-expanded="true"] {
    background: #fff5f2;
    border-color: #f2d4cd;
}


/* =========================================================
   AVATAR
   ========================================================= */

.tp-header-avatar {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 50%;

    background: #e7604c;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    text-transform: uppercase;
}


.tp-header-avatar-large {
    width: 44px;
    height: 44px;

    flex-basis: 44px;

    font-size: 14px;
}


/* =========================================================
   CUSTOMER NAME
   ========================================================= */

.tp-header-account-name {
    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
}


.tp-header-account-trigger > .bi-chevron-down {
    font-size: 11px;

    color: #777;

    transition:
        transform .2s ease;
}


.tp-header-account-trigger[aria-expanded="true"]
> .bi-chevron-down {
    transform: rotate(180deg);
}


/* =========================================================
   ACCOUNT DROPDOWN
   ========================================================= */

.tp-header-account-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 280px;

    padding: 10px;

    background: #fff;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    box-shadow:
        0 16px 45px rgba(0, 0, 0, .12);

    z-index: 9999;

    animation:
        tpAccountMenuIn .18s ease;
}


.tp-header-account-menu[hidden] {
    display: none !important;
}


@keyframes tpAccountMenuIn {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   MENU USER
   ========================================================= */

.tp-header-account-menu-user {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 8px 7px 12px;
}


.tp-header-account-menu-user > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.tp-header-account-menu-user strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #222;

    font-size: 14px;
    font-weight: 700;
}


.tp-header-account-menu-user small {
    display: block;

    max-width: 185px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #888;

    font-size: 11px;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.tp-header-account-menu-divider {
    height: 1px;

    margin: 5px 0;

    background: #eeeeee;
}


/* =========================================================
   MENU ITEM
   ========================================================= */

.tp-header-account-menu-item {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 11px 10px;

    border-radius: 9px;

    color: #333;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.tp-header-account-menu-item:hover {
    background: #fff5f2;

    color: #e7604c;
}


.tp-header-account-menu-item i {
    width: 20px;

    color: #777;

    font-size: 17px;

    text-align: center;
}


.tp-header-account-menu-item:hover i {
    color: #e7604c;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.tp-header-account-logout:hover {
    background: #fff1ef;

    color: #d94f3e;
}

.tp-mobile-account-avatar {
    background: #e7604c;
    color: #fff;

    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .tp-header-account-name {
        display: none;
    }


    .tp-header-account-trigger {
        padding: 3px;
    }


    .tp-header-account-menu {
        position: fixed;

        top: 70px;
        right: 15px;

        width: min(
            280px,
            calc(100vw - 30px)
        );
    }

}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .tp-login-methods {
        margin-top: 22px;
        gap: 10px;
    }


    .tp-login-method {
        min-height: 82px;

        padding: 14px;

        gap: 13px;

        border-radius: 12px;
    }


    .tp-login-method-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;

        border-radius: 10px;

        font-size: 19px;
    }


    .tp-login-method-content strong {
        font-size: 15px;
    }


    .tp-login-method-content small {
        font-size: 12px;
    }


    .tp-auth-back-button {
        margin-top: 18px;
    }

}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .tp-auth-wrapper {
        min-height: 100vh;
        padding: 0;
        align-items: stretch;
    }


    .tp-auth-container {
        min-height: 100vh;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }


    .tp-auth-visual {
        display: none;
    }


    .tp-auth-form-section {
        min-height: 100vh;
        padding: 30px 22px;
        align-items: flex-start;
    }


    .tp-auth-form-container {
        max-width: 100%;
    }


    .tp-auth-mobile-logo {
        display: inline-block;
    }


    .tp-auth-heading h2 {
        font-size: 28px;
    }


    .tp-auth-heading p {
        margin-bottom: 26px;
    }

}