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

.TSCLogin-main-div {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid #f1f5f9;
}

#TSCLogin-login_tabs {
    display: flex;
    width: 100%;
    background-color: #f8fafc;
    padding: 6px;
    border-radius: 20px;
    margin-bottom: 32px;
    gap: 8px;
    box-sizing: border-box;
    justify-content: center;
}

.login_tabs, .TSCLogin-login_tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 64px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center 10px;
    color: #64748b;
    font-weight: 500;
    position: relative;
    border: none;
}

.login_tabs span {
    position: absolute;
    bottom: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login_tabs:hover {
    background-color: rgba(241, 245, 249, 0.5);
    color: #334155;
}

.TSCLogin-selected_tab {
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    font-weight: 700;
}

#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"); }

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

.TSCLogin-phone_field, .TSCLogin-email_field, #TSCLogin-otp-input {
    width: 100%;
    height: 56px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 20px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #1e293b;
}

#TSCLogin-otp-input {
    text-align: center;
    letter-spacing: 12px;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-left: 28px;
}

.TSCLogin-phone_field:focus, .TSCLogin-email_field:focus, #TSCLogin-otp-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.TSCLogin-button-38 {
    width: 100%;
    background: #0f172a;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.TSCLogin-button-38:hover:not(:disabled) {
    background: #1e293b;
    transform: translateY(-1px);
}

.TSCLogin-button-38:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

#TSCLogin-resend_otp_button {
    background: transparent;
    color: #6366f1;
    box-shadow: none;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

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

.TSCLogin-arrow {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b"><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;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.TSCLogin-arrow:hover { background-color: #f1f5f9; }

.TSCLogin-current_login_value {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.TSCLogin-success-svg {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2322c55e"><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>');
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 15px auto;
}

.TSCLogin-note {
    font-size: 13px;
    padding: 12px;
    border-radius: 12px;
    margin-top: 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: none;
}
.TSCLogin-error { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; display: block; }
.TSCLogin-success { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; display: block; }
.TSCLogin-warning { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; display: block; }

.TSCLogin-prompt {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}