.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
    font-family: var(--wp-administration-style--font-family-sans) !important;
}
::placeholder {
    font-family: var(--wp-administration-style--font-family-sans) !important;
}
.login * {
    font-family: var(--wp-administration-style--font-family-sans) !important;
}

body.login {
    background-color: #0b0f19; 
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(52, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(52, 168, 83, 0.05) 0%, transparent 50%);
    direction: rtl;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    color: #e2e8f0;
}

/* Hide default WordPress elements */
.login h1,
.login #backtoblog,
.login .language-switcher {
    display: none !important;
}

#login {
    padding: 0;
    width: 100%;
}

/* Custom Wrappers */
.custom-login-wrapper {
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Glassmorphism Card + Animation */
.login-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    padding: 1rem;
    width: 100%;
    max-width: 64rem;
    /* انیمیشن ورود */
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Left Info Panel - Glassy Dark */
.info-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 580px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

@media (max-width: 1023px) {
    .info-panel { display: none; }
}

.icon-bell-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34a853;
    box-shadow: 0 0 20px rgba(52, 168, 83, 0.3);
    border: 1px solid rgba(52, 168, 83, 0.2);
}

.info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.info-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 350px;
}

/* Testimonial Slider - Glassy Dark */
#testimonial-slider, .testimonial-item.active, .testimonial-header, .slider-dots { display: flex; }
#testimonial-slider { position: relative; flex-direction: column; }
.testimonial-item { 
    background: rgba(15, 23, 42, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem; 
    padding: 1.2rem; 
    display: none; 
}
.testimonial-item.active { flex-direction: column; }
.testimonial-header { align-items: center; gap: 1rem; }
.testimonial-avatar img { width: 60px; height: 60px; border-radius: 20%; object-fit: cover; }
.testimonial-author h4 { font-weight: 700; color: #e2e8f0; margin: 0; }
.testimonial-author p { color: #64748b; font-size: 0.875rem; margin: 0; }
.testimonial-body { font-size: 0.875rem; color: #cbd5e1; line-height: 1.7; margin-top: 1rem; }
.slider-dots { gap: 0.5rem; margin-top: 1rem; }
.slider-dots .dot { width: 24px; height: 8px; background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }
.slider-dots .dot.active { width: 48px; background-color: #34a853; box-shadow: 0 0 10px rgba(52, 168, 83, 0.5); }

/* Right Login Form Panel */
.login-form-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-logo { display: none; margin-bottom: 2rem; text-align: center; }
.login-title { font-size: 1.5rem; font-weight: 700; color: #f8fafc; text-align: center; margin-bottom: 2rem; }

/* Form Elements - Dark Mode */
#loginform { margin: 0; padding: 8px; box-shadow: none; background: transparent; border: none; }
#loginform p { margin-bottom: 1.5rem; }

.input-icon-wrapper { position: relative; }

.input-icon-wrapper .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    color: #64748b;
    z-index: 2;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    background-color: rgba(15, 23, 42, 0.6);
    width: 100%;
    font-size: 0.875rem;
    color: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    height: 52px;
    transition: all 0.3s ease;
}

#loginform input[type="text"] { padding: 0.875rem 3rem 0.875rem 1rem; }
#loginform input[type="password"] { padding: 0.875rem 3rem 0.875rem 3.5rem; }

#loginform input::placeholder { color: #64748b; }

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: #34a853;
    background-color: rgba(15, 23, 42, 0.9);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.2);
}

/* Password visibility toggle */
.clt-toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1rem;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
}
.clt-toggle-password:hover { color: #f8fafc; }

/* Remember me & Action Buttons */
#loginform .forgetmenot { display: flex; align-items: center; }
#loginform #rememberme { height: 1rem; width: 1rem; border-radius: 0.25rem; border-color: rgba(255, 255, 255, 0.2); background: transparent; color: #34a853; }
#loginform #rememberme:focus { box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.3); }
#loginform .forgetmenot label { margin-right: 0.5rem; display: block; font-size: 0.875rem; color: #cbd5e1; margin-bottom: 0; }

.login-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: stretch;
    width: 100%;
}

p.submit { margin: 0; }
#wp-submit {
    width: 100%; box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3); padding: 0.875rem 1rem; font-size: 1rem; font-family: 'Vazirmatn', sans-serif; font-weight: 600; border-radius: 0.75rem; color: #fff; background-color: #34a853; border: none; height: auto; line-height: inherit; text-shadow: none; transition: all 0.2s ease-in-out;
}
#wp-submit:hover { background-color: #2b8a44; box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4); transform: translateY(-1px); }

.separator { display: flex; align-items: center; text-align: center; color: #64748b; font-size: 0.875rem; margin: 0; }
.separator::before, .separator::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.separator:not(:empty)::before { margin-left: 1rem; }
.separator:not(:empty)::after { margin-right: 1rem; }

#nav { padding: 0; margin: 0; }
.login #nav { margin: 20px 0 0; display: flex; flex-direction: column-reverse; align-items: center; }

#nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    color: #cbd5e1 !important;
    text-decoration: none;
    cursor: not-allowed;
    background-color: rgba(15, 23, 42, 0.4);
    transition: all 0.2s;
}
#nav a:hover {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc !important;
}

/* Modal Overlay & Box - Dark Theme */
.login #login_error { display: none; }
.clt-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; animation: fadeIn 0.3s forwards;
}
.clt-modal-box {
    background: #1e293b; color: #f87171; padding: 2rem 2.5rem; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; position: relative; max-width: 90%; width: 400px; border-top: 5px solid #ef4444; transform: scale(0.9); animation: dropIn 0.3s forwards;
}
.clt-modal-close {
    position: absolute; top: 10px; left: 15px; font-size: 28px; font-weight: bold; color: #64748b; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.clt-modal-close:hover { color: #f8fafc; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes dropIn { to { transform: scale(1); } }

.login .message, .login .success {
    border-right: 4px solid #34a853; border-left: none; margin: 1em 0; position: static; width: 100%; max-width: 100%; background: rgba(15, 23, 42, 0.6); color: #cbd5e1; box-shadow: none; border-radius: 4px;
}


.wp-hide-pw, 
.wp-pwd button {
    display: none !important;
}

.wp-pwd {
    position: relative;
    width: 100%;
}

@property --neon-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.login-card::after {
    display: none;
}

.login-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -3px; 
    border-radius: calc(1.5rem + 3px);
    
    background: conic-gradient(
        from var(--neon-angle), 
        transparent 60%, 
        rgba(52, 168, 83, 0.1) 80%,
        #34a853 95%, 
        #86efac 100%
    );
    
    padding: 3px; 
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    animation: rotateNeonBorder 4s linear infinite;
}

@keyframes rotateNeonBorder {
    0% { --neon-angle: 0deg; }
    100% { --neon-angle: 360deg; }
}

.login #login_error, 
.login .message {
    display: none !important;
}

.clt-modal-box.clt-success-modal {
    color: #ffffff;
    border-top: 5px solid #28a745;
}