﻿body {
    margin: 0;
}

.wrap-login100 {
    flex-direction: row;
}

.container-login100 {
    padding: 0px;
    height: 100%;
}

.label-input100 {
    text-align: right;
    padding-right: 15px;
    top: 15px;
}

.login100-form-title {
    font-size: 25px;
    line-height: 50px;
    margin-bottom: 15px;
}

input[type=text]:not(.browser-default) {
    height: 1.7rem;
}

.input100:focus + .focus-input100 + .label-input100,
.has-val + .focus-input100 + .label-input100 {
    top: 3px;
    font-size: 12px;
}


.wrap-input100 {
    height: 50px;
}

.login100-form {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 20px;
    margin-left: 20px;
    padding: 25px 35px;
}

@media (max-width: 992px) {
    .login100-more {
        width: calc(100% - 560px);
        background-size: contain;
    }

    .login100-form, .login100-more {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .wrap-login100 {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 680px) {
    .wrap-login100 {
        padding-left: 80px;
        padding-right: 80px;
    }
}



@media (max-width: 650px) {
    .wrap-login100 {
        padding-left: 70px;
        padding-right: 70px;
    }
}


@media (max-width: 576px) {
    .login100-form {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 20px;
    }

    .wrap-login100 {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media(max-width: 450px) {
    .login100-form {
        margin: 10px;
    }

    .login100-form-title {
        font-size: 20px;
        line-height: 40px;
        margin-bottom: 15px;
    }

    .wrap-login100 {
        padding-left: 5px;
        padding-right: 5px;
    }
}




/*#region Register*/

.password-wrapper {
    position: relative;
    width: 100%;
}

.rules-popup {
    position: absolute;
    bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

    .rules-popup ul {
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: right;
        margin-right: 30px;
    }

    .rules-popup li {
        font-size: 13px;
        margin: 5px 0;
        position: relative;
        padding-right: 20px;
    }

.valid {
    color: green;
}

.invalid {
    color: red;
}

.valid::before {
    content: "✔";
    position: absolute;
    right: 0;
    color: green;
}

.invalid::before {
    content: "✖";
    position: absolute;
    right: 0;
    color: red;
}


/*#endregion*/







* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #0b1020;
    overflow-x: hidden;
}

body {
    direction: rtl;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 28%), radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.14), transparent 26%), linear-gradient(135deg, #0b1020 0%, #111827 55%, #0b1220 100%);
}

.login-wrapper {
    width: min(1100px, 100%);
    min-height: 300px;
    display: flex;
    flex-direction: row-reverse; /* راست: hero / چپ: فرم */
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero {
    flex: 1.15;
    padding: 35px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(139, 92, 246, 0.16)), rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

    .hero .badge {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: fit-content;
        padding: 10px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.10);
        backdrop-filter: blur(10px);
        font-size: 0.95rem;
    }

    .hero h1 {
        margin: 28px 0 16px;
        font-size: clamp(2rem, 3vw, 3.2rem);
        line-height: 1.35;
        letter-spacing: -0.02em;
    }

    .hero p {
        margin: 0;
        max-width: 480px;
        font-size: 1rem;
        line-height: 2;
        color: rgba(255, 255, 255, 0.80);
    }

.features {
    margin-top: 36px;
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

    .feature .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: linear-gradient(135deg, #22d3ee, #8b5cf6);
        box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
        flex: 0 0 auto;
    }

.login-form {
    flex: 0.95;
    padding: 56px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-form h2 {
        margin: 0 0 10px;
        font-size: 1.7rem;
    }

    .login-form .sub {
        margin: 0 0 5px;
        color: #64748b;
        line-height: 1.9;
        font-size: 0.98rem;
    }

.field {
    margin-bottom: 10px;
}

    .field label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.95rem;
        color: #334155;
        font-weight: 600;
    }

    .field input {
        width: 100%;
        height: 45px;
        padding: 0 16px;
        border-radius: 14px;
        border: 1px solid #dbe4f0;
        background: #fff;
        color: #0f172a;
        outline: none;
        transition: 0.25s ease;
        font-family: inherit;
    }

        .field input:focus {
            border-color: #8b5cf6;
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
        }

.btn {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(139, 92, 246, 0.30);
    }

.footer-link {
    margin-top: 18px;
    font-size: 0.92rem;
    color: #64748b;
    text-align: center;
}

    .footer-link a {
        color: #8b5cf6;
        text-decoration: none;
        font-weight: 700;
    }

/* تبلت */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .hero {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero,
    .login-form {
        padding: 40px 32px;
    }
}

/* موبایل */
@media (max-width: 600px) {
    body {
        padding: 12px;
        align-items: flex-start;
    }

    .login-wrapper {
        border-radius: 24px;
    }

    .hero,
    .login-form {
        padding: 24px 18px;
    }

        .hero h1 {
            font-size: 1.7rem;
            margin-top: 20px;
        }

        .hero p {
            font-size: 0.95rem;
            line-height: 1.9;
        }

    .features {
        margin-top: 24px;
        gap: 12px;
    }

    .feature {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .login-form h2 {
        font-size: 1.55rem;
    }

    .login-form .sub {
        margin-bottom: 0px;
        font-size: 0.94rem;
    }

    .field input,
    .btn {
        height: 48px;
        border-radius: 12px;
    }
}


/* کانتینر اصلی تصویر - بدون تغییر ساختاری */
.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-visual img {
        width: 110%;
        max-width: 550px;
        height: auto;
        /* ۱. محو کردن دورتا دور عکس (Fade Edge) */
        /* استفاده از mask-image با گرادینت شعاعی برای محو شدن نرم لبه‌ها */
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
        /* ۲. ایجاد درخشش نرم و عمق (Glow & Depth) */
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1)) brightness(1.1);
        /* ۳. انیمیشن نرم و بی‌نهایت (بدون هاور) */
        animation: smoothFloat 8s ease-in-out infinite;
        /* حذف هرگونه تغییر در هاور برای حفظ حالت استاتیک و شیک */
        transition: none;
    }

/* انیمیشن شناور بسیار آرام و شیک */
@keyframes smoothFloat {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        /* حرکت بسیار کم به بالا و کمی بزرگ شدن برای حس تنفس (Breathing Effect) */
        transform: translateY(-15px) scale(1.03);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* اضافه کردن یک لایه درخشش (Glow) در پشت عکس برای ترکیب بهتر با شیشه */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    /* اینجا رنگ اصلی تم خودت رو بذار (مثلاً آبی ملایم یا بنفش) */
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, transparent 60%);
    z-index: -1;
    animation: glowPulse 10s ease-in-out infinite;
}

/* انیمیشن تنفس لایه درخشش پشت عکس */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


body {
    /* ترکیب رنگ‌های عمیق (تیره) با لایه‌های رنگی از رنگ‌های اصلی عکس */
    background: radial-gradient(circle at top right, rgba(20, 30, 48, 1), transparent), /* رنگ تیره اصلی */
    radial-gradient(circle at center, rgba(36, 59, 85, 1), #0f172a), /* رنگ میانی */
    #0f172a; /* رنگ پایه بسیار تیره */
    background-attachment: fixed;
    margin: 0;
    overflow-x: hidden;
}


.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-visual img {
        width: 110%;
        max-width: 550px;
        height: auto;
        /* ۱. محو کردن لبه‌ها (همان کد قبلی) */
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
        /* ۲. جادوی اصلی: ترکیب رنگ‌ها */
        /* blend-mode: screen یا overlay باعث می‌شود بخش‌های تیره عکس با پس‌زمینه یکی شوند */
        mix-blend-mode: screen;
        /* ۳. کاهش شدت رنگ‌های خنثی و تمرکز روی رنگ‌های اصلی */
        filter: brightness(1.2) contrast(1.1) saturate(1.2);
        animation: smoothFloat 8s ease-in-out infinite;
    }

    /* اضافه کردن یک لایه رنگی "پرت" (Color Spill) که از عکس به سمت پس‌زمینه می‌ریزد */
    .hero-visual::after {
        content: '';
        position: absolute;
        width: 120%;
        height: 120%;
        /* رنگ‌هایی که دقیقاً از رنگ‌های اصلی عکس استخراج شده‌اند */
        background: radial-gradient(circle, rgba(0, 150, 255, 0.2) 0%, transparent 50%);
        z-index: -1;
        filter: blur(60px);
        animation: colorFlow 12s ease-in-out infinite alternate;
    }

@keyframes colorFlow {
    0% {
        transform: translate(-10%, -10%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(10%, 10%) scale(1.2);
        opacity: 0.8;
    }
}


.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* فاصله کمتر بین فرم و عکس برای جمع‌وجور شدن */
}

/* بخش فرم (Login Card) */
.login-card {
    flex: 1.5; /* وزن بیشتر به فرم (مثلاً ۱.۵ برابر) */
    max-width: 450px; /* جلوگیری از کش آمدن بیش از حد فرم */
    z-index: 2;
}

/* بخش تصویر (Hero Visual) */
.hero-visual {
    flex: 0.8; /* وزن کمتر به عکس (کمتر از فرم) */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


    .hero-visual img {
        /* ۱. کوچک کردن اندازه اصلی */
        width: 85%; /* به جای ۱۱۰٪، حالا عکس کوچکتر است */
        max-width: 350px; /* کنترل دقیق روی بزرگترین اندازه ممکن */
        height: auto;
        /* بقیه استایل‌های قبلی (Mask, Blend Mode, Animation) را اینجا حفظ کن */
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
        mix-blend-mode: screen;
        animation: smoothFloat 8s ease-in-out infinite;
    }

    /* برای اینکه لایه درخشش هم با عکس کوچک شده هماهنگ باشد */
    .hero-visual::after {
        content: '';
        position: absolute;
        width: 100%; /* حالا بر اساس کانتینر کوچک‌تر تنظیم می‌شود */
        height: 100%;
        background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, transparent 60%);
        z-index: -1;
        filter: blur(40px);
    }



@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse; /* عکس پایین یا بالا قرار بگیرد */
        gap: 10px;
    }

    .hero-visual {
        flex: none; /* در موبایل وزن مشخصی نگیرد */
        width: 100%;
        margin-top: 20px;
    }

        .hero-visual img {
            max-width: 250px; /* در موبایل خیلی کوچک‌تر شود */
            width: 60%;
        }
}


.text-center{
    text-align:center;
}

.text-danger
{
    color:red;
}

.mt-2{
    margin-top:10px;
}




