/* =========================================
TSOWQ LOGIN MODAL
========================================= */

.ts-login-modal{
position:fixed;
inset:0;
z-index:99999;
display:none;
}

.ts-login-modal.show{
display:block;
}

.ts-login-overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.55);
backdrop-filter:blur(4px);
}

.ts-login-box{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:430px;
max-width:95%;
background:#fff;
border-radius:18px;
padding:25px 30px;
box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.ts-login-close{
position:absolute;
top:15px;
left:15px;
border:none;
background:none;
font-size:28px;
cursor:pointer;
color:#dc2626;
transition:.2s;
}

.ts-login-close:hover,
.ts-login-close:focus-visible{
    color:#b91c1c;
}

.ts-auth-switch button:hover{
    background:#f5f5f5;
}

.ts-login-logo{
text-align:center;
margin-bottom:15px;
}

.ts-login-logo img{
max-width:180px;
max-height:70px;
object-fit:contain;
}

.ts-login-title{
text-align:center;
font-size:24px;
font-weight:700;
color:#222;
margin-bottom:25px;
}

/* =========================================
LOGIN / REGISTER TABS
========================================= */

/* =========================================
LOGIN / REGISTER TABS
========================================= */

.ts-auth-switch{
    display:flex;
    margin-bottom:20px;
    padding:3px;
    background:#F3F4F6;
    border:1px solid #D9DDE3;
    border-radius:10px;
    overflow:hidden;
}

.ts-auth-switch button{
    flex:1;
    height:46px;
    border:none;
    background:transparent;
    color:#3B3F45;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    border-radius:8px;
    transition:all .2s ease;
}

.ts-auth-switch button:hover{
    background:#ECEFF3;
}

.ts-auth-switch button.active{
    background:#fff;
    color:#111827;
}

/* =========================================
FIELDS
========================================= */

.ts-smart-field{
margin-bottom:20px;
}

.ts-smart-field label{
display:block;
margin-bottom:8px;
font-size:14px;
font-weight:600;
color:#444;
}

.ts-smart-field input{
width:100%;
height:54px;
padding:0 15px;
border:1px solid #ddd;
border-radius:12px;
background:#fff;
font-size:15px;
outline:none;
transition:.25s;
}

.ts-smart-field input:focus{
border-color:#2155ff;
box-shadow:0 0 0 3px rgba(33,85,255,.12);
}

/* =========================================
VALIDATION
========================================= */

.ts-input-invalid{
border-color:#ff3b30 !important;
box-shadow:0 0 0 3px rgba(255,59,48,.10);
}

.ts-input-valid{
border-color:#16a34a !important;
box-shadow:0 0 0 3px rgba(22,163,74,.10);
}

.ts-input-error,
.ts-input-success{
display:none;
margin-top:6px;
font-size:13px;
font-weight:500;
}

.ts-input-error{
color:#ff3b30;
}

.ts-input-success{
color:#16a34a;
}

.ts-input-error.show,
.ts-input-success.show{
display:block;
}

/* =========================================
CONSENT
========================================= */

.ts-consent-row,
.ts-register-consent{
display:flex;
align-items:flex-start;
gap:10px;
margin:15px 0;
}

.ts-consent-row input,
.ts-register-consent input{
width:auto;
height:auto;
margin-top:4px;
}

.ts-consent-row label,
.ts-register-consent label{
color:#555;
font-size:14px;
line-height:1.7;
}

/* =========================================
SUBMIT BUTTON
========================================= */

.ts-login-submit{
width:100%;
height:54px;
border:none;
border-radius:12px;
background:#2155ff;
color:#fff;
font-size:16px;
font-weight:700;
cursor:pointer;
transition:.25s;
}

.ts-login-submit:hover

.ts-login-submit:disabled{
opacity:.6;
cursor:not-allowed;
}

/* =========================================
PHONE FIELD
========================================= */

.ts-phone-wrapper{
display:flex;
align-items:center;
width:100%;
height:56px;
margin-bottom:20px;
border:1px solid #d9dce1;
border-radius:14px;
overflow:hidden;
background:#fff;
direction:ltr;
transition:.25s;
}

.ts-phone-wrapper:focus-within{
border-color:#2155ff;
box-shadow:0 0 0 4px rgba(33,85,255,.12);
}

.ts-country-select-wrap{
display:flex;
align-items:center;
justify-content:center;
gap:1px;
width:112px;
min-width:112px;
height:100%;
border-left:1px solid #e5e7eb;
background:#f8fafc;
direction:ltr;
}

#ts-country-flag{
display:block;
width:24px;
height:16px;
object-fit:cover;
border-radius:2px;
}

#ts-country-code{
width:70px;
min-width:70px;
height:100%;
border:0;
background:transparent;
color:#222;
font-size:12px;
font-weight:600;
text-align:center;
cursor:pointer;
outline:none;
appearance:none;
}

.ts-country-select-wrap:hover{
background:#eef2f7;
}

#ts-login-input{
flex:1;
height:100%;
border:none !important;
background:#fff;
padding:0 18px;
font-size:15px;
text-align:right;
direction:rtl;
box-shadow:none !important;
outline:none;
}

#ts-login-input::placeholder{
color:#9aa3af;
}

/* =========================================
REGISTER MODE
========================================= */

.ts-phone-wrapper.register-mode{
border:none !important;
overflow:visible;
box-shadow:none !important;
}

.ts-phone-wrapper.register-mode .ts-country-select-wrap{
display:none;
}

.ts-phone-wrapper.register-mode #ts-login-input{
height:56px;
border:1px solid #d9dce1 !important;
border-radius:14px !important;
}

.ts-phone-wrapper.register-mode #ts-login-input:focus{
border-color:#2155ff !important;
box-shadow:0 0 0 4px rgba(33,85,255,.12) !important;
}

