@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.TSCLogin-main-div {
    width: min(100%, 430px);
    margin: 32px auto;
    padding: clamp(22px, 5vw, 34px);
    box-sizing: border-box;
    font-family: 'Outfit', Arial, sans-serif;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
    position: relative;
    overflow: hidden;
    animation: TSCLogin-card-in 0.35s ease both;
}

.TSCLogin-main-div *,
.TSCLogin-main-div *::before,
.TSCLogin-main-div *::after {
    box-sizing: border-box;
}

.TSCLogin-main-div form,
.TSCLogin-after-login {
    width: 100%;
}

#TSCLogin-login_form,
#TSCLogin-validate_otp_form,
.TSCLogin-after-login {
    animation: TSCLogin-panel-in 0.28s ease both;
}

#TSCLogin-login_tabs {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin: 0 0 24px;
    padding: 5px;
    gap: 6px;
    background-color: #f4f6f8;
    border: 1px solid #edf0f3;
    border-radius: 8px;
}

.login_tabs,
.TSCLogin-login_tabs {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px 8px 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.login_tabs span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login_tabs:hover {
    color: #374151;
    background-color: #ffffff;
    transform: translateY(-1px);
}

.TSCLogin-selected_tab {
    color: #101828 !important;
    background-color: #ffffff !important;
    border-color: #d8dee6 !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08) !important;
}

#TSCLogin-whatsapp_login_tab {
    background-image: url("https://login.smartcircuit.sa/images/whatsapp.svg");
}

#TSCLogin-sms_login_tab {
    background-image: url("https://login.smartcircuit.sa/images/sms.svg");
}

#TSCLogin-email_login_tab {
    background-image: url("https://login.smartcircuit.sa/images/email.svg");
}

#TSCLogin-phone-widget,
#TSCLogin-email-widget {
    width: 100%;
    margin-top: 0 !important;
}

#TSCLogin-email-widget {
    margin: 4px 0 18px !important;
}

.iti {
    width: 100%;
    margin-bottom: 18px;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

.TSCLogin-phone_field,
.TSCLogin-email_field,
#TSCLogin-otp-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    color: #111827;
    font-family: inherit;
    font-size: 16px;
    line-height: 54px;
    background-color: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.TSCLogin-phone_field::placeholder,
.TSCLogin-email_field::placeholder {
    color: #98a2b3;
}

.TSCLogin-email_field {
    padding-left: 46px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23667085" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a2 2 0 0 1-2.06 0L2 7"/></svg>');
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: left 16px center;
}

.TSCLogin-phone_field:focus,
.TSCLogin-email_field:focus,
#TSCLogin-otp-input:focus {
    outline: none;
    border-color: #12a594;
    box-shadow: 0 0 0 4px rgba(18, 165, 148, 0.14);
}

#TSCLogin-otp-input {
    margin: 0 0 18px;
    padding: 0 18px;
    text-align: center;
    letter-spacing: 0;
    font-size: 30px;
    font-weight: 700;
}

.TSCLogin-login-button,
.TSCLogin-div-container {
    width: 100%;
}

.TSCLogin-button-38 {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.TSCLogin-button-38:hover:not(:disabled) {
    background: #0b1220;
    border-color: #0b1220;
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.2);
    transform: translateY(-1px);
}

.TSCLogin-button-38:active:not(:disabled) {
    transform: translateY(0);
}

.TSCLogin-button-38:disabled {
    color: #98a2b3;
    background: #eef1f5;
    border-color: #eef1f5;
    box-shadow: none;
    cursor: not-allowed;
}

.TSCLogin-social-login {
    width: 100%;
    margin-top: 22px;
    animation: TSCLogin-panel-in 0.25s ease both;
}

.TSCLogin-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #7b8494;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.TSCLogin-divider::before,
.TSCLogin-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e7eb;
}

.TSCLogin-google-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.TSCLogin-google-button iframe {
    max-width: 100% !important;
}

#TSCLogin-resend_otp_button {
    min-height: auto;
    margin-top: 12px;
    padding: 8px 10px;
    color: #087b70;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
}

#TSCLogin-resend_otp_button:hover:not(:disabled) {
    color: #05665d;
    background: #eefaf8;
    box-shadow: none;
}

#TSCLogin-resend_otp_button:disabled {
    color: #8a94a6;
    background: transparent;
}

.TSCLogin-back-button {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.TSCLogin-arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f8fafc;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23667085"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.TSCLogin-arrow:hover {
    background-color: #eefaf8;
    border-color: #bfe8e2;
    transform: translateX(-1px);
}

.TSCLogin-current_login_value {
    min-width: 0;
    color: #344054;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.TSCLogin-after-login {
    padding: 8px 0 2px;
    color: #344054;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.TSCLogin-success-svg {
    width: 60px;
    height: 60px;
    margin: 16px auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2312a594"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11.0026 16L18.0737 8.92893L16.6595 7.51472L11.0026 13.1716L8.17421 10.3431L6.75999 11.7574L11.0026 16Z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.TSCLogin-note {
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    display: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    animation: TSCLogin-panel-in 0.2s ease both;
}

.TSCLogin-error {
    color: #b42318;
    background: #fff3f0;
    border: 1px solid #ffd6cc;
    display: block;
}

.TSCLogin-success {
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    display: block;
}

.TSCLogin-warning {
    color: #b54708;
    background: #fffaeb;
    border: 1px solid #fedf89;
    display: block;
}

.TSCLogin-prompt {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(5px);
    animation: TSCLogin-fade-in 0.18s ease both;
}

@keyframes TSCLogin-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes TSCLogin-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes TSCLogin-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 520px) {
    .TSCLogin-main-div {
        width: calc(100% - 28px);
        margin: 18px auto;
        padding: 20px;
    }

    #TSCLogin-login_tabs {
        min-height: 54px;
        margin-bottom: 20px;
    }

    .login_tabs,
    .TSCLogin-login_tabs {
        min-height: 44px;
        padding: 26px 6px 7px;
        font-size: 11px;
        background-size: 18px 18px;
    }

    .TSCLogin-phone_field,
    .TSCLogin-email_field,
    #TSCLogin-otp-input,
    .TSCLogin-button-38 {
        height: 52px;
        min-height: 52px;
    }

    #TSCLogin-otp-input {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .TSCLogin-main-div,
    #TSCLogin-login_form,
    #TSCLogin-validate_otp_form,
    .TSCLogin-after-login,
    .TSCLogin-social-login,
    .TSCLogin-note,
    .TSCLogin-prompt {
        animation: none;
    }

    .login_tabs,
    .TSCLogin-button-38,
    .TSCLogin-arrow {
        transition: none;
    }
}
