/*
|--------------------------------------------------------------------------
| SlantFlow Passwordless Account
|--------------------------------------------------------------------------
*/

.sf-passwordless-auth {
    --sf-auth-width: 580px;
    --sf-auth-blue: #2563eb;
    --sf-auth-text: #0f172a;
    --sf-auth-muted: #64748b;
    --sf-auth-border: #e2e8f0;
}


/*
|--------------------------------------------------------------------------
| Reset theme/Woo account layout for guests
|--------------------------------------------------------------------------
*/

.sf-passwordless-auth
main,
.sf-passwordless-auth
.site-main,
.sf-passwordless-auth
#primary,
.sf-passwordless-auth
.content-area,
.sf-passwordless-auth
.site-content {
    width: 100% !important;
    max-width: none !important;
}

.sf-passwordless-auth
.woocommerce {
    display: block !important;

    width: min(
        var(--sf-auth-width),
        calc(100% - 40px)
    ) !important;

    max-width: var(--sf-auth-width) !important;

    margin: 55px auto 80px !important;
    padding: 0 !important;

    float: none !important;

    grid-template-columns: none !important;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Hide native Woo login/register UI
|--------------------------------------------------------------------------
*/

.sf-passwordless-auth
.woocommerce
.woocommerce-form-login,

.sf-passwordless-auth
.woocommerce
.u-columns,

.sf-passwordless-auth
.woocommerce
.col2-set,

.sf-passwordless-auth
.woocommerce
> h2 {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| Main authentication card
|--------------------------------------------------------------------------
*/

.sf-phone-auth {
    display: block;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 36px 38px;

    border: 1px solid var(--sf-auth-border);
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 18px 50px
        rgba(15, 23, 42, .07);

    box-sizing: border-box;

    direction: rtl;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.sf-phone-auth__head {
    max-width: 430px;

    margin:
        0
        auto
        30px;

    text-align: center;
}

.sf-phone-auth__head h1 {
    margin:
        0
        0
        10px;

    color: var(--sf-auth-text);

    font-size: 28px;
    font-weight: 800;
    line-height: 1.55;
}

.sf-phone-auth__head p {
    margin: 0;

    color: var(--sf-auth-muted);

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


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.sf-phone-auth__form {
    width: 100%;
}

.sf-phone-auth__form label {
    display: block;

    margin-bottom: 9px;

    color: var(--sf-auth-text);

    font-size: 14px;
    font-weight: 700;
}

.sf-phone-auth__form
.iti {
    display: block;

    width: 100% !important;
}

.sf-phone-auth__form
.iti__tel-input,

.sf-phone-auth__form
input[type="tel"],

.sf-phone-auth__form
input[type="text"] {
    display: block;

    width: 100% !important;
    max-width: none !important;

    min-height: 54px;

    margin: 0 !important;

    padding-top: 10px;
    padding-bottom: 10px;

    border:
        1px solid
        #dbe1e8;

    border-radius: 12px;

    background: #fff;

    box-sizing: border-box;

    font-family: inherit;
    font-size: 15px;
}

.sf-phone-auth__form
input:focus {
    border-color:
        var(--sf-auth-blue);

    outline: none;

    box-shadow:
        0
        0
        0
        3px
        rgba(37, 99, 235, .10);
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.sf-phone-auth__send,
.sf-phone-auth__verify {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    max-width: none !important;

    min-height: 52px;

    margin:
        16px
        0
        0 !important;

    padding:
        10px
        18px !important;

    border: 0 !important;
    border-radius: 12px !important;

    background:
        var(--sf-auth-blue) !important;

    color: #fff !important;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    box-shadow: none !important;

    cursor: pointer;
}

.sf-phone-auth__send:hover,
.sf-phone-auth__verify:hover {
    background:
        #1d4ed8 !important;
}

.sf-phone-auth__send:disabled,
.sf-phone-auth__verify:disabled {
    opacity: .65;

    cursor: wait;
}


/*
|--------------------------------------------------------------------------
| OTP
|--------------------------------------------------------------------------
*/

.sf-phone-auth__timer {
    min-height: 20px;

    margin-top: 10px;

    color: var(--sf-auth-muted);

    font-size: 12px;

    text-align: center;
}

.sf-phone-auth__code {
    margin-top: 26px;

    padding-top: 24px;

    border-top:
        1px solid
        #e2e8f0;
}

.sf-phone-auth__code[hidden] {
    display: none !important;
}

.sf-phone-auth__code
#sfotp_code {
    direction: ltr;

    text-align: center;

    letter-spacing: 9px;

    font-size: 21px;
    font-weight: 700;
}

.sf-phone-auth__message {
    min-height: 22px;

    margin-top: 12px;

    font-size: 13px;
    line-height: 1.7;

    text-align: center;
}

.sf-phone-auth__message.is-success {
    color: #15803d;
}

.sf-phone-auth__message.is-error {
    color: #b91c1c;
}


/*
|--------------------------------------------------------------------------
| Security note
|--------------------------------------------------------------------------
*/

.sf-phone-auth__secure {
    margin-top: 28px;

    padding-top: 18px;

    border-top:
        1px solid
        #f1f5f9;

    color: var(--sf-auth-muted);

    font-size: 12px;
    line-height: 1.8;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .sf-passwordless-auth
    .woocommerce {
        width:
            min(
                520px,
                calc(100% - 28px)
            ) !important;

        margin:
            28px
            auto
            50px !important;
    }

    .sf-phone-auth {
        padding:
            28px
            24px;

        border-radius:
            19px;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .sf-passwordless-auth
    .woocommerce {
        width:
            calc(100% - 24px)
            !important;

        margin:
            18px
            auto
            36px !important;
    }

    .sf-phone-auth {
        padding:
            24px
            18px;

        border-radius:
            17px;
    }

    .sf-phone-auth__head {
        margin-bottom:
            22px;
    }

    .sf-phone-auth__head h1 {
        font-size:
            22px;
    }

    .sf-phone-auth__head p {
        font-size:
            13px;
    }

    .sf-phone-auth__form
    .iti__tel-input,

    .sf-phone-auth__form
    input[type="tel"],

    .sf-phone-auth__form
    input[type="text"] {
        min-height:
            50px;
    }

    .sf-phone-auth__send,
    .sf-phone-auth__verify {
        min-height:
            50px;
    }
}
