.td-login-page {
    /* width: 100%; */
    /* min-height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 32px 16px; */
    /* background: #fff; */
}

.td-login-box {
    width: 448px;
    /* max-width: 448px; */
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* Header */

.td-login-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 32px;

    text-align: center;
}

.td-login-logo {
    margin-bottom: 8px;
}

.td-login-logo a {
    display: block;
}

.td-login-logo-image {
    display: block;

    width: auto;
    max-width: 150px;
    height: 60px;

    object-fit: contain;
}

.td-login-header h1 {
    margin: 8px 0 0;

    color: #0f172a;

    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.td-login-header p {
    margin: 4px 0 0;

    color: #64748b;

    font-size: 14px;
    line-height: 20px;
}


/* Form */

.td-login-form {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
}

.td-form-group {
    margin-bottom: 24px;
}

.td-form-group label {
    display: block;

    margin-bottom: 6px;

    color: #334155;

    font-size: 14px;
    line-height: 20px;

    font-weight: 500;
}

.td-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 6px;
}

.td-label-row label {
    margin-bottom: 0;
}

.td-forgot-password {
    color: var(--primary-color, #000);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
}

.td-forgot-password:hover {
    text-decoration: underline;
}

.tx-page-login .woocommerce {
    align-items: center !important;
    flex-direction: column!important;
}

.tx-page-login .page-wrapper {
    width: 100%;
}

.tx-page-login main#main, .tx-page-login #wrapper {
    background: #fff!important;
}


/* Input */

.td-input-wrap {
    position: relative;
}

.td-form-control {
    display: block;

    width: 100% !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 10px 12px 10px 44px !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;

    background: #fff !important;

    color: #0f172a !important;

    font-size: 14px !important;

    box-shadow: none !important;

    outline: none !important;
}

.td-form-control::placeholder {
    color: #94a3b8;
}

.td-form-control:focus {
    border-color: var(--primary-color, #000) !important;

    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--primary-color, #000) 15%,
            transparent
        ) !important;
}

.td-input-icon {
    position: absolute;

    top: 0;
    left: 0;

    width: 44px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;

    pointer-events: none;

    z-index: 2;
}

.td-input-icon svg {
    width: 20px;
    height: 20px;
}


/* Password */

.td-password-input {
    padding-right: 44px !important;
}

.td-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    z-index: 3;
    margin: 0;
}

.td-password-toggle:hover {
    color: #475569;
}

.td-password-toggle svg {
    width: 20px;
    height: 20px;
}

.td-eye-hide {
    display: none;
}

.td-password-toggle.is-visible .td-eye-show {
    display: none;
}

.td-password-toggle.is-visible .td-eye-hide {
    display: block;
}


/* Remember */

.td-login-options {
    margin: -4px 0 20px;
}

.td-remember {
    display: flex !important;
    align-items: center;

    gap: 8px;

    margin: 0 !important;

    color: #475569 !important;

    font-size: 14px !important;
}

.td-remember input {
    width: 16px !important;
    height: 16px !important;

    margin: 0 !important;
}


/* Button */

.td-login-button {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    height: auto !important;

    padding: 10px 16px !important;

    border: 1px solid transparent !important;
    border-radius: 8px !important;

    background: var(--primary-color, #000) !important;
    color: #fff !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.15s ease;
}

.td-login-button:hover {
    opacity: 0.9;
}

.td-login-button:active {
    transform: scale(0.98);
}


/* Register */

.td-login-register {
    margin-top: 32px;

    text-align: center;
}

.td-login-register p {
    margin: 0;

    color: #475569;

    font-size: 14px;
    line-height: 20px;
}

.td-login-register a {
    color: var(--primary-color, #000);

    font-weight: 600;

    text-decoration: none;
}

.td-login-register a:hover {
    text-decoration: underline;
}


/* WooCommerce errors */

.td-login-box .woocommerce-error,
.td-login-box .woocommerce-message,
.td-login-box .woocommerce-info {
    margin: 0 0 20px !important;

    padding: 12px 14px !important;

    border-radius: 8px;

    font-size: 14px;
}


/* Mobile */

@media (max-width: 640px) {

    .td-login-page {
        min-height: auto;
        padding: 0;
        width: 100%;
    }

    .td-login-box {
        padding: 28px 20px;

        border-radius: 10px;

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    .td-login-header {
        margin-bottom: 28px;
    }

    .td-login-logo-image {
        max-width: 130px;
        height: 52px;
    }

}

div#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

main#main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer.secondary-footer {
    flex-shrink: 0;
    text-align: center;
    padding-block: 24px;
    margin-top: 0;
}
.td-social-login {
    width: 100%;
    margin-top: 24px;
}


/* Divider */

.td-social-divider {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    color: #64748b;

    font-size: 14px;
    line-height: 20px;

    text-align: center;
}

.td-social-divider::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 50%;

    height: 1px;

    background: #e5e7eb;
}

.td-social-divider span {
    position: relative;

    z-index: 1;

    padding: 0 8px;

    background: #fff;

    color: #64748b;

    font-size: 14px;
}


/* Button */

.td-social-buttons {
    width: 100%;

    margin-top: 24px;
}

.or-register {margin-top: 25px;}

.or-register a {
    font-weight: 700;
    color: var(--fs-color-primary);
}

.or-register a:hover {
    color: var(--fs-color-primary);
    text-decoration: underline;
}

.td-google-login {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 10px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #fff;

    color: #334155;

    font-size: 14px;
    line-height: 20px;
    font-weight: 500;

    text-decoration: none;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.td-google-login:hover {
    background: #f8fafc;

    border-color: #d1d5db;

    color: #334155;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.td-google-icon {
    width: 20px;
    height: 20px;

    flex-shrink: 0;
}


/* Mobile */

@media (max-width: 640px) {

    .td-social-login {
        margin-top: 20px;
    }

    .td-social-buttons {
        margin-top: 20px;
    }

    .td-google-login {
        padding: 11px 16px;
    }

}


.woocommerce-account .row-main > .col {
    padding-block: 0;
}

.woocommerce-account div#content {
    padding-bottom: 0;
}


@media (max-width: 768px) {
    .td-login-box {
        width: 100%;
        max-width: 100%;
    }
    .td-login-box .woocommerce-account .woocommerce {
        gap: 0;
    }
}
