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

:root{
    --purple-dark:#1f1228;
    --purple-mid:#3c2450;
    --purple:#5A3472;
    --purple-light:#7C4DFF;
    --pink:#dc5590;
    --gold:#FFD54F;
    --white:#fff;
    --text:#2b1838;
    --muted:#6f6079;
    --line:#eadff3;
    --soft:#f7f0fb;
    --danger:#b42318;
    --success:#15803d;
    --shadow:0 24px 70px rgba(31,18,40,.28);
    --shadow-card:0 14px 38px rgba(31,18,40,.14);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body.k-auth-body{
    font-family:'Vazirmatn', Tahoma, Arial, sans-serif;
    direction:rtl;
    min-height:100vh;
    background:
        radial-gradient(circle at 15% 12%, rgba(220,85,144,.32), transparent 25%),
        radial-gradient(circle at 85% 18%, rgba(255,213,79,.18), transparent 24%),
        linear-gradient(135deg,#1f1228,#3c2450,#5A3472,#7C4DFF);
    padding:28px;
    color:var(--text);
}

.k-auth-shell{
    width:min(1180px,100%);
    min-height:calc(100vh - 56px);
    margin:auto;
    display:grid;
    grid-template-columns:1fr 1.08fr;
    gap:26px;
    align-items:stretch;
}

.k-auth-hero{
    position:relative;
    overflow:hidden;
    border-radius:36px;
    padding:34px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.16);
    backdrop-filter:blur(22px);
    box-shadow:var(--shadow);
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.k-auth-hero::before{
    content:"";
    position:absolute;
    width:280px;
    height:280px;
    border-radius:50%;
    background:rgba(255,213,79,.16);
    left:-90px;
    bottom:-110px;
}

.k-auth-hero::after{
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    border-radius:50%;
    background:rgba(255,255,255,.11);
    right:-50px;
    top:-50px;
}

.k-auth-hero-inner{
    position:relative;
    z-index:2;
}

.k-auth-brand{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:34px;
}

.k-auth-logo{
    width:82px;
    height:82px;
    border-radius:50%;
    object-fit:contain;
    background:#fff;
    padding:7px;
    box-shadow:0 0 26px rgba(255,255,255,.38);
}

.k-auth-brand strong{
    display:block;
    font-size:26px;
    font-weight:900;
}

.k-auth-brand span{
    display:block;
    margin-top:5px;
    font-size:13px;
    color:rgba(255,255,255,.78);
}

.k-auth-badge{
    display:inline-flex;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,213,79,.18);
    color:#fff4bd;
    font-size:13px;
    font-weight:900;
    margin-bottom:18px;
}

.k-auth-hero h1{
    font-size:clamp(30px,4vw,48px);
    line-height:1.65;
    font-weight:900;
    margin-bottom:12px;
}

.k-auth-hero p{
    color:rgba(255,255,255,.86);
    line-height:2.2;
    font-size:15px;
    max-width:660px;
}

.k-auth-features{
    position:relative;
    z-index:2;
    display:grid;
    gap:12px;
    margin-top:28px;
}

.k-auth-feature{
    display:flex;
    gap:10px;
    align-items:center;
    padding:13px 15px;
    border-radius:18px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:13px;
    font-weight:800;
}

.k-auth-feature span{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(255,255,255,.15);
}

.k-auth-card{
    background:rgba(255,255,255,.96);
    border-radius:36px;
    padding:34px;
    box-shadow:var(--shadow);
    border:1px solid rgba(255,255,255,.50);
    align-self:center;
}

.k-auth-card.wide{
    align-self:stretch;
    overflow:auto;
}

.k-auth-card-head{
    text-align:center;
    margin-bottom:22px;
}

.k-auth-card-head img{
    width:116px;
    height:auto;
    display:block;
    margin:0 auto 10px;
}

.k-auth-card-head h2{
    font-size:28px;
    color:var(--text);
    font-weight:900;
    margin-bottom:8px;
}

.k-auth-card-head p{
    color:#6f6079;
    line-height:2;
    font-size:14px;
}

.k-auth-slogan{
    margin:16px 0 22px;
    padding:14px 16px;
    background:linear-gradient(135deg,#f8f0ff,#fff8fb);
    border:1px solid #eadff3;
    border-radius:20px;
    text-align:center;
    color:var(--purple);
    font-weight:900;
    line-height:2;
}

.k-alert{
    padding:14px 16px;
    border-radius:18px;
    margin-bottom:16px;
    font-size:13px;
    line-height:2;
    font-weight:800;
}

.k-alert-success{
    background:#dcfce7;
    color:#166534;
    border:1px solid #bbf7d0;
}

.k-alert-error{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fecaca;
}

.k-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.k-field{
    margin-bottom:15px;
}

.k-field.full{
    grid-column:1 / -1;
}

.k-field label{
    display:block;
    margin-bottom:8px;
    color:#3c2450;
    font-size:13px;
    font-weight:900;
}

.k-input,
.k-select{
    width:100%;
    min-height:51px;
    padding:13px 15px;
    border:1px solid #e5d8ef;
    border-radius:17px;
    font-family:inherit;
    font-size:14px;
    color:var(--text);
    background:#fff;
    outline:none;
    transition:.22s;
}

.k-input:focus,
.k-select:focus{
    border-color:var(--purple-light);
    box-shadow:0 0 0 4px rgba(124,77,255,.13);
}

.k-ref-box{
    background:#faf6ff;
    border:1px solid #eadff3;
    border-radius:20px;
    padding:15px;
}

.k-error{
    color:var(--danger);
    font-size:12px;
    margin-top:7px;
    font-weight:900;
    line-height:1.8;
}

.k-terms-box{
    margin:4px 0 18px;
    padding:15px;
    border-radius:20px;
    background:rgba(90,52,114,.08);
    border:1px solid rgba(90,52,114,.18);
}

.k-terms-label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    cursor:pointer;
    color:#3c2450;
    font-size:13px;
    font-weight:800;
    line-height:2;
}

.k-terms-label input{
    width:19px;
    height:19px;
    margin-top:6px;
    accent-color:var(--purple);
    flex:0 0 auto;
}

.k-terms-label a{
    color:var(--purple-light);
    font-weight:900;
    text-decoration:none;
}

.k-terms-label a:hover{
    text-decoration:underline;
}

.k-auth-btn{
    width:100%;
    min-height:52px;
    border:none;
    border-radius:17px;
    padding:14px;
    background:linear-gradient(135deg,#5A3472,#7C4DFF);
    color:#fff;
    font-family:inherit;
    font-size:16px;
    font-weight:900;
    cursor:pointer;
    transition:.24s;
    box-shadow:0 14px 30px rgba(90,52,114,.28);
}

.k-auth-btn:hover:not(:disabled){
    transform:translateY(-2px);
    box-shadow:0 18px 38px rgba(90,52,114,.36);
}

.k-auth-btn:disabled{
    opacity:.55;
    cursor:not-allowed;
    box-shadow:none;
}

.k-link-btn{
    display:block;
    width:100%;
    text-align:center;
    padding:14px;
    background:#f3eef7;
    color:var(--purple);
    text-decoration:none;
    border-radius:17px;
    font-weight:900;
    transition:.22s;
    margin-top:12px;
}

.k-link-btn:hover{
    background:#eadff3;
}

.k-auth-links{
    margin-top:18px;
    text-align:center;
    color:#6f6079;
    font-size:14px;
    line-height:2;
}

.k-auth-links a{
    color:var(--purple);
    font-weight:900;
    text-decoration:none;
}

.k-auth-links a:hover{
    text-decoration:underline;
}

.k-auth-footer{
    margin-top:22px;
    text-align:center;
    color:#7b7083;
    font-size:12px;
    line-height:2;
}

.k-forgot-row{
    display:flex;
    justify-content:flex-end;
    margin:4px 0 16px;
}

.k-forgot-row a{
    color:var(--purple);
    text-decoration:none;
    font-weight:900;
    font-size:13px;
}

@media(max-width:980px){
    .k-auth-shell{
        grid-template-columns:1fr;
    }

    .k-auth-hero{
        min-height:auto;
    }
}

@media(max-width:640px){
    body.k-auth-body{
        padding:14px;
    }

    .k-auth-shell{
        min-height:calc(100vh - 28px);
    }

    .k-auth-card,
    .k-auth-hero{
        padding:23px;
        border-radius:26px;
    }

    .k-form-grid{
        grid-template-columns:1fr;
    }

    .k-field.full{
        grid-column:auto;
    }

    .k-auth-card-head h2{
        font-size:23px;
    }

    .k-auth-brand{
        flex-direction:column;
        text-align:center;
    }
}


.k-input-locked{
    background:#f4eef8 !important;
    color:#5A3472 !important;
    border-color:#d9c5e8 !important;
    cursor:not-allowed;
    font-weight:900;
}

.k-referrer-badge{
    margin-top:10px;
    padding:11px 13px;
    border-radius:15px;
    background:linear-gradient(135deg,rgba(90,52,114,.10),rgba(124,77,255,.10));
    border:1px solid rgba(90,52,114,.16);
    color:#4c2d63;
    font-size:12px;
    font-weight:800;
    line-height:2;
}

.k-referrer-badge strong{
    color:#5A3472;
    font-weight:900;
}


.k-birth-date-input{
    direction:ltr;
    text-align:right;
    font-family:inherit !important;
    letter-spacing:.5px;
}

.k-input[type="date"],
.k-birth-date-input{
    width:100%;
    min-height:50px;
    border-radius:16px;
    border:1px solid rgba(90,52,114,.18);
    background:#fbf9fd;
    color:#24142f;
    padding:13px 15px;
    font-size:14px;
    font-weight:850;
    outline:none;
    box-sizing:border-box;
}

.k-input[type="date"]:focus,
.k-birth-date-input:focus{
    background:#fff;
    border-color:#7C4DFF;
    box-shadow:0 0 0 4px rgba(124,77,255,.10);
}



.k-field-help{
    margin-top:7px;
    color:#6b7280;
    font-size:12px;
    font-weight:800;
    line-height:2;
}

.k-birth-date-input{
    direction:ltr;
    text-align:right;
    font-family:'Vazirmatn', Tahoma, Arial, sans-serif !important;
    letter-spacing:.4px;
}

.k-birth-date-input::placeholder{
    direction:rtl;
    text-align:right;
    color:#9b8aa6;
}

.k-input[type="text"].k-birth-date-input{
    width:100%;
    min-height:51px;
    padding:13px 15px;
    border:1px solid #e5d8ef;
    border-radius:17px;
    background:#fff;
    color:var(--text);
    outline:none;
    transition:.22s;
    box-sizing:border-box;
}

.k-input[type="text"].k-birth-date-input:focus{
    border-color:var(--purple-light);
    box-shadow:0 0 0 4px rgba(124,77,255,.13);
}




