/*
 * ===================================================
 * JAY Relog - Professional Form Style
 * Version: 2.0
 * Features: Glassmorphism, Animations, Icons, Responsive
 * ===================================================
 */

/* --- متغیرهای اصلی و پس‌زمینه صفحه --- */
:root {
    --bg-gradient-start: #6a11cb;
    --bg-gradient-end: #2575fc;
    --form-bg-color: rgba(255, 255, 255, 0.1);
    --form-border-color: rgba(255, 255, 255, 0.2);
    --form-shadow-color: rgba(0, 0, 0, 0.1);
    --text-color: #fff;
    --input-bg: rgba(0, 0, 0, 0.2);
    --input-border: #888;
    --input-focus-border: #00aaff;
    --button-bg: linear-gradient(90deg, #0073aa, #00c6ff);
    --button-hover-bg: linear-gradient(90deg, #00c6ff, #0073aa);
    --button-secondary-bg: rgba(255, 255, 255, 0.15);
    --button-secondary-hover-bg: rgba(255, 255, 255, 0.25);
    --success-color: #28a745;
    --error-color: #dc3545;
     --accent-color: #64ffda;
}
@font-face{font-family:iransans;font-weight:700;font-style:normal;
    src:url(../font/IRANSansWeb_Bold.eot);
    src:url(../font/IRANSansWeb_Bold.eot?#iefix) format("embedded-opentype"),
    url(../font/IRANSansWeb_Bold.woff2) format("woff2"),
    url(../font/IRANSansWeb_Bold.woff) format("woff"),
    url(../font/IRANSansWeb_Bold.ttf) format("truetype")}
    @font-face{font-family:IRANSans;font-weight:500;font-style:normal;src:url(../font/IRANSansWeb_Medium.eot);
    src:url(../font/IRANSansWeb_Medium.eot?#iefix) 
    format("embedded-opentype"),
    url(../font/IRANSansWeb_Medium.woff2) format("woff2"),
    url(../font/IRANSansWeb_Medium.woff) format("woff"),
    url(../font/IRANSansWeb_Medium.ttf) format("truetype")}
    @font-face{font-family:iransans;font-weight:300;font-style:normal;src:url(../font/IRANSansWeb_Light.eot);
    src:url(../font/IRANSansWeb_Light.eot?#iefix) 
    format("embedded-opentype"),
    url(../font/IRANSansWeb_Light.woff2) format("woff2"),
    url(../font/IRANSansWeb_Light.woff) format("woff"),
    url(../font/IRANSansWeb_Light.ttf) format("truetype")}
    @font-face{font-family:iransans;font-weight:400;font-style:normal;src:url(../font/IRANSansWeb.eot);
    src:url(../font/IRANSansWeb.eot?#iefix) format("embedded-opentype"),
    url(../font/IRANSansWeb.woff)format("woff"),
    url(../font/IRANSansWeb.ttf) format("truetype")}
    @font-face {
        font-family: 'IRANS';
        src: url('../font/IRANSans-Light-web.woff') format('woff');
        font-weight: normal;
    }
    
    
    @font-face {
        font-family: 'IRANS';
        src: url('../font/IRANSans-web.woff') format('woff');
        font-weight: bold;
    }
body {
  color: #1d2928;
  direction: rtl;
  font-family:iransans;
  background-color: #f0f4f5;
  margin: 0;
  padding: 0;
}
/* استایل برای مخفی‌سازی فیلد تله کپچای Honeypot */
.jay-login-register-honeypot-field {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px); 
    clip: rect(1px, 1px, 1px, 1px);
}
.jay-login-register-captcha-field {
    margin-top: 1rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.jay-login-register-captcha-field label {
    display: block;font-family: iransans;
    margin-bottom: 0.5rem;direction:ltr;text-align:left;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9em;
}

.jay-login-register-loggedin-container {
    text-align: center;
    max-width: 420px;
  margin: 60px auto;
  background: var(--form-bg-color);
  border-radius: 24px;
  border: 1px solid var(--form-border-color);
  box-shadow: 0 8px 32px 0 var(--form-shadow-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  position: relative;
  z-index: 10;
  animation: fadeInForm 1s ease-out forwards;
  overflow: hidden;
}

.jay-login-register-loggedin-container h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color:#606060;
}

.jay-login-register-loggedin-container p {
    color:#717171;
    font-size: 1em;
    margin-bottom: 25px;
}

.jay-login-register-redirect-timer {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 15px;
    margin-bottom: 20px;
}

#jay-login-register-countdown {
    font-weight: bold;
    color:#d72626;
}
.jay-login-register-resend-link-login {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color:#c42727;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}
.jay-login-register-resend-link-login:hover {
    opacity: 1;
    text-decoration: underline;
}

.jay-login-register-button-login {
    width: 100%;
    padding: 15px;font-family: iransans;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
}

.jay-login-register-button-login {
    background: var(--button-bg);text-decoration:none;
    background-size: 200% 100%;font-family: iransans;
}
.jay-login-register-button-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.jay-login-register-button-login:hover {
    background-position: 100% 0;
}

.jay-login-register-button-login:disabled {
    background: #555 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* استایل برای تایمر مسدودیت */
.jay-login-register-lockout-message {
    margin-top: 10px;
    font-weight: normal;
}
.jay-login-register-lockout-timer {
    direction: ltr;
    display: inline-block;
    font-weight: bold;
    color:#e67171;
    background-color: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.1em;
}
.jay-login-register-switcher {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}
.jay-login-register-switcher:hover {
    opacity: 1;
    text-decoration: underline;
}
.yekshomaredigar {
    display:flex;margin-top: 10px;
    justify-content:center;
}
.yekshomaredigar a {
color: #fff;
  border-radius: 5px;
  background-color: rgba(57, 255, 1, 0.5);
  padding: 10px;}

/* استایل لینک بررسی مجدد */
.jay-login-register-resend-link {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color:#000;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}
.jay-login-register-resend-link:hover {
    opacity: 1;
    text-decoration: underline;
}
.jay-login-register-step-container h3 {
    color:#fff !important;
    font-family:iransans !important;
    font-weight:bold !important;
}
/* --- کانتینر اصلی فرم (افکت شیشه‌ای) --- */
/*.jay-login-register-container {*/
/*    max-width: 420px;*/
/*    margin: 60px auto;*/
/*    background: var(--form-bg-color);*/
/*    border-radius: 20px;*/
/*    border: 1px solid var(--form-border-color);*/
/*    box-shadow: 0 8px 32px 0 var(--form-shadow-color);*/
/*    backdrop-filter: blur(12px);*/
/*    -webkit-backdrop-filter: blur(12px);*/
/*    padding: 2rem; font-family:iransans;*/
/*    direction: rtl;color:#fff;*/
/*    animation: fadeInForm 0.8s ease-out forwards;*/
/*}*/


 .jay-login-register-container {
            max-width: 420px;
            margin: 60px auto;
            background: var(--form-bg-color);
            border-radius: 24px;
            border: 1px solid var(--form-border-color);
            box-shadow: 0 8px 32px 0 var(--form-shadow-color);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 2.5rem;
            position: relative;
            z-index: 10;
            animation: fadeInForm 1s ease-out forwards;
            overflow: hidden;
        }

.jay-login-register-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }




/* --- بک گراند متحرک --- */
.page-template-default {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    font-family: iransans;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- آیکون های شناور پس زمینه --- */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    font-size: 2rem;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: -5s;
    font-size: 1.5rem;
}

.floating-icon:nth-child(3) {
    top: 50%;
    left: 5%;
    animation-delay: -10s;
    font-size: 2.5rem;
}

.floating-icon:nth-child(4) {
    top: 70%;
    right: 10%;
    animation-delay: -15s;
    font-size: 1.8rem;
}

.floating-icon:nth-child(5) {
    top: 30%;
    left: 70%;
    animation-delay: -7s;
    font-size: 2rem;
}

.floating-icon:nth-child(6) {
    top: 80%;
    left: 30%;
    animation-delay: -12s;
    font-size: 1.6rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

/* --- افکت پارالاکس با موس --- */
@media (max-width: 480px) {
    .floating-icon {
        font-size: 1.2rem !important;
    }
}


/* --- انیمیشن ورود فرم --- */
@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- لوگو، عناوین و پاراگراف‌ها --- */
.jay-login-register-logo-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}
.jay-login-register-logo-wrapper img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}
.jay-login-register-step h2, .jay-login-register-step h3 {
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.jay-login-register-step p {
    text-align: center;
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- فیلدهای ورودی (Input) با آیکون --- */
.jay-login-register-field {
    position: relative;
    margin-bottom: 1.5rem;
}
.jay-login-register-toggle-label {
    display: block;font-family: iransans;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #000 !important;
    font-size: 0.9em;
}
.jay-login-register-field label {
    display: block;font-family: iransans;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9em;
}
.jay-login-register-input {
    width: 100%;
    padding: 14px 14px 14px 45px; 
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-align: left;
    direction: ltr;
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px;
}
.jay-login-register-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.jay-login-register-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.3);
}

/* آیکون‌ها برای فیلدهای مختلف (SVG Data URI) */
input[name="jay_login_register_phone"] {
   font-family: iransans; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m10.92 0h1.51c-.09 1.32-.35 2.59-.76 3.79l-1.2-1.2c.24-.83.39-1.7.45-2.59M12 3C6.48 3 2 7.48 2 13c0 1.48.31 2.89.87 4.19l1.45-1.45C4.12 14.93 4 14 4 13c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1-.12 1.93-.33 2.8l1.45 1.45c.56-1.3.88-2.71.88-4.25C22 7.48 17.52 3 12 3z'/%3E%3C/svg%3E");
}
input[name="jay_login_register_national_code"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
input[name="jay_login_register_passport"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3s-3 1.34-3 3c0 .35.07.69.18 1H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5-1c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 13.5c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm6.6 6H2.4c-.22 0-.4-.18-.4-.4V9.4c.22-.71.78-1.4 1.4-1.4h15.2c.62 0 1.18.69 1.4 1.4v9.7c0 .22-.18.4-.4.4z'/%3E%3C/svg%3E");
 }
input[name="jay_login_register_otp"], input[name="jay_login_register_otp_login"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm6 2a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v4h12z'/%3E%3C/svg%3E");
}
input[name="jay_login_register_password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

/* --- استایل دکمه‌ها --- */
.jay-login-register-button,
.jay-login-register-button-secondary {
    width: 100%;
    padding: 15px;font-family: iransans;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
}

.jay-login-register-button {
    background: var(--button-bg);
    background-size: 200% 100%;font-family: iransans;
}

.jay-login-register-button-secondary {
    background:rgba(255, 255, 255, 0.15);font-family: iransans;
    border: 1px solid var(--form-border-color);
    margin-top: 0.75rem; 
}

/* افکت هاور برای هر دو دکمه */
.jay-login-register-button:hover,
.jay-login-register-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.jay-login-register-button:hover {
    background-position: 100% 0;
}

.jay-login-register-button-secondary:hover {
    background: var(--button-secondary-hover-bg);
}

.jay-login-register-button:disabled,
.jay-login-register-button-secondary:disabled {
    background: #555 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- پیغام‌های خطا و موفقیت --- */
.jay-login-register-messages {
    padding: 12px 15px;
    margin-top: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;font-family: iransans;
    display: none;
    color: #fff;
}
.jay-login-register-messages:not(:empty){
    display: block;
    animation: fadeInForm 0.5s ease;
}
.jay-login-register-messages.error {text-align: right;
  direction: rtl;line-height: 30px;
    background-color: rgba(220, 53, 69, 0.5);font-family: iransans;
    border: 1px solid rgba(220, 53, 69, 0.8);
}
.jay-login-register-messages.success {
    background-color: rgba(40, 167, 69, 0.5);font-family: iransans;
    border: 1px solid rgba(40, 167, 69, 0.8);
}

.jay-spinner{display:inline-block;width:1em;height:1em;border:2px solid transparent;border-top-color:currentColor;border-radius:50%;animation:spin .6s linear infinite;margin-left:8px;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}  
.jay-login-register-switcher { display: block; text-align: center; margin-top: 10px; font-size: 0.9em; cursor: pointer; }

/* --- واکنش‌گرایی برای موبایل --- */
@media (max-width: 480px) {
    .jay-login-register-container {
        margin: 20px 15px;
        padding: 1.5rem;
    }
}
/* استایل برای تایمر و لینک ارسال مجدد */
.jay-login-register-timer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9em;
}
.jay-login-register-timer {
    direction: ltr;
    font-weight: bold;
    color: var(--accent-color);
}
.jay-login-register-resend-link[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
}