/* ==========================================================================
   WordPress Luxury Gradient & Neumorphism Circular Login Style
   ========================================================================== */

/* ۱. پس‌زمینه گرادیان زنده و تنظیم مرکزیت صفحه */
body.login {
    background: linear-gradient(135deg, #F7F9FC 0%, #DDEAFE 40%, #F3C4F9 100%) !important;
    font-family: 'Samim', Tahoma, sans-serif !important;
    direction: rtl;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* ۲. کانتینر اصلی دایره‌ای (شناور روی گرادیان) */
#login {
    width: 500px !important;
    height: 500px !important;
    padding: 20px 20px !important;
    margin: 0 auto !important;
    background: rgba(247, 249, 252, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        15px 15px 35px rgba(106, 75, 195, 0.15),
        -15px -15px 35px rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* ۳. لوگو */
#login h1 {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
}

#login h1 a {
    display: block !important;
    width: 128px !important;
    height: 128px !important;
    margin: 0 auto !important;
    background-image: url('https://ebnsinagenelab.com/wp-content/themes/IbneSina/images/login-logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border-radius: 50% !important;
    box-shadow: 
        inset 3px 3px 6px rgba(0,0,0,0.06), 
        inset -3px -3px 6px rgba(255,255,255,0.9) !important;
    padding: 8px !important;
}

/* ۴. حذف استایل‌های ساختاری پیش‌فرض وردپرس */
#loginform {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 80% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#loginform .forgetmenot{
        display: flex;
    align-items: center;
    justify-content: center;
}

/* ۵. لیبل‌ها و فیلدهای ورودی فرورفته */
#loginform label {
    width: 100% !important;
    color: #4A5568 !important;
    font-size: 12px !important;
    margin-bottom: 6px !important;
    text-align: right !important;
}

#loginform .input {
    width: 100% !important;
    background: rgba(247, 249, 252, 0.9) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    color: #2D3748 !important;
    margin-top: 3px !important;
    box-shadow: 
        inset 3px 3px 6px rgba(0,0,0,0.08), 
        inset -3px -3px 6px rgba(255,255,255,0.9) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

#loginform .input:focus {
    box-shadow: 
        inset 1px 1px 3px rgba(0,0,0,0.12), 
        inset -1px -1px 3px rgba(255,255,255,1) !important;
}

/* ۶. مرا به خاطر بسپار */
.forgetmenot {
    float: none !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    text-align: right !important;
}

.forgetmenot label {
    font-size: 11px !important;
}

/* ۷. دکمه لاگین برجسته گرادیانی */
#wp-submit {
    width: 100% !important;
    height: 50px !important;
    line-height: 40px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 20px !important;
    border: none !important;
    background: linear-gradient(135deg, #6A4BC3, #A855F7) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(106, 75, 195, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s ease-in-out !important;
    float: none !important;
    margin-top: 4px !important;
}

#wp-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(106, 75, 195, 0.45) !important;
}

/* ۸. لینک فراموشی رمز عبور */
#nav, #backtoblog {
    padding: 0 !important;
    margin: 6px 0 0 0 !important;
    text-align: center !important;
    font-size: 11px !important;
}

#nav a, #backtoblog a {
    color: #6A4BC3 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

#backtoblog {
    display: none !important; /* مخفی‌سازی لینک برگشت به سایت برای تقارن دایره */
}

/* ۹. حل مشکل زبان‌سوئیچر (انتقال مطلق به داخل دایره بدون شکستن مرکزیت) */
.language-switcher {
    position: absolute !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 140px !important;
    margin: 0 !important;
    text-align: center !important;
}

.language-switcher select {
    width: 100% !important;
    background: rgba(247, 249, 252, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    color: #4A5568 !important;
    box-shadow: 
        inset 2px 2px 4px rgba(0,0,0,0.05), 
        inset -2px -2px 4px rgba(255,255,255,0.8) !important;
    outline: none !important;
    cursor: pointer !important;
}

.login .language-switcher .button {
    margin-bottom: 10px;
    /* border: none; */
    border-radius: 999px;
    margin: 10px;
    border: 1px solid #7354b521;
}

/* ۱۰. ریسپانسیو برای موبایل */
@media (max-width: 500px) {
    #login {
        width: 330px !important;
        height: 330px !important;
        padding: 20px !important;
    }

    #login h1 a {
        width: 45px !important;
        height: 45px !important;
    }

    #loginform label, .forgetmenot label {
        font-size: 10px !important;
    }

    #loginform .input {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    #wp-submit {
        height: 34px !important;
        line-height: 34px !important;
        font-size: 12px !important;
    }

    .language-switcher {
        bottom: 12px !important;
        width: 110px !important;
    }
}