/* ============================================================
   جلوگیری از اسکرول افقی صفحه هنگام تعامل با reCAPTCHA
   ============================================================ */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    overflow-x: clip;

    font-family: 'Shabnam';
    direction: rtl;
}

/* ============================================================
   چیدمان دو ستونه: لاگین سمت راست، تصویر سمت چپ
   (در RTL اولین فرزند flex سمت راست قرار می‌گیرد)
   ============================================================ */

.split-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.login-side {
    flex: 0 0 42%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 50px;
    box-sizing: border-box;
    background: #fff;
}

/* سمت چپ */
.image-side {
    flex: 1;
    min-height: 100vh;
    background:
        linear-gradient(#25000033, #070000a2),
        url('../images/bckgrounds/bkUserPanel.webp') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.image-content {
    max-width: 460px;
    color: #fff;
    text-align: right;
}

.image-content h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.6;
}

.image-subtitle {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.9;
    color: #ffffffd9;
}

.image-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.image-features li {
    position: relative;
    padding: 0 26px 0 0;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.8;
}

/* تیک زرد کنار هر مورد (سمت راست در RTL) */
.image-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: #ffae00;
    font-weight: bold;
}

/* ============================================================
   هدر فرم
   ============================================================ */

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px;
    perspective: 600px;
}

.login-header h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    text-align: right;
}

small {
    font-size: 14px !important;
}

.login-header small {
    font-size: 13px;
    color: #555;
}

.iconCompany {
    flex: 0 0 63px;
    width: 63px;
    height: 63px;
    background: url('../images/icons/logo.webp') no-repeat center / contain;
}

/* ============================================================
   کارت فرم
   ============================================================ */

.login-form {
    width: 305px;
    background: #f8f8f8;
    padding: 0px 15px;
    border-radius: 20px;
    /* box-shadow: 0 8px 32px #99999930; */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid #f3f3f3;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.login-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 93%;
    height: 26px;
    font-family: 'Shabnam';
    font-size: 15px;
    margin: 0px auto 15px auto;
    padding: 10px;
    background-color: #ffffffce;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    background-color: #ffffffce;
    border: #000 1px solid;
}

/* ============================================================
   reCAPTCHA
   ============================================================ */

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    direction: ltr;
    max-height: 80px;
    overflow: hidden;
}

.g-recaptcha iframe {
    max-height: 78px;
    border: none;
}

/* ============================================================
   آیکون‌ها
   ============================================================ */

.iconsLogin {
    position: absolute;
    padding: 15px;
    width: 5px;
    height: 5px;
    left: 20px;
    border-radius: 100px;
}

#iconUser {
    margin: 6px auto 0px auto;
    background: url('../images/icons/person.svg') no-repeat center, #ececec;
    background-size: 25px;
}

#iconPass {
    margin: 6px auto 0px auto;
    background: url('../images/icons/visibilityOn.svg') no-repeat center, #ececec;
    background-size: 20px;
    cursor: pointer;
}

.iconPassOff {
    margin: 6px auto 0px auto;
    background: url('../images/icons/visibilityOff.svg') no-repeat center, #ececec !important;
    background-size: 20px !important;
    cursor: pointer;
}

#iconLoading {
    position: absolute;
    display: none;
    width: 2px;
    height: 2px;
    background: url('../images/icons/loadIcon.png') no-repeat center;
    background-size: cover;
    right: -120px;
    border-radius: 100px;
    margin: 10px auto 0px auto;
    padding: 15px;
    transform: rotateX(0deg);
    -webkit-transform: rotateZ(0deg);
    -o-transform: rotateZ(0deg);
    -ms-transform: rotateZ(0deg);
}

@keyframes loading {
    0%   { transform: rotateZ(0deg); }
    25%  { transform: rotateZ(90deg); }
    50%  { transform: rotateZ(180deg); }
    75%  { transform: rotateZ(260deg); }
    100% { transform: rotateZ(360deg); }
}

.loading {
    animation: loading 0.3s infinite;
    display: inline-block !important;
}

/* ============================================================
   خطاها و دکمه
   ============================================================ */

.login-form .message {
    margin-top: 10px;
    font-size: 14px;
    color: #ff0000;
}

.login-form input[type="submit"] {
    width: 100%;
    height: 50px;
    font-family: 'Shabnam';
    font-size: 16px;
    background: linear-gradient(-330deg, #ffd000, #ffae00);
    color: #000;
    padding: 10px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s all ease-in-out;
}

.login-form input[type="submit"]:hover {
    box-shadow: inset -400px 0px 10px 0px #ffae00;
}

.login-form input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-form input[type="submit"]:disabled:hover {
    box-shadow: none;
}

.linkForgetPsw {
    color: #0077ff;
}

/* ============================================================
   فوتر (داخل پنل لاگین، پایین)
   ============================================================ */

.footer {
    position: absolute;
    width: 100%;
    padding: 12px 0;
    bottom: 0;
    left: 0;
    text-align: center;
    color: #7e7e7e;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 13px;
}

.footer a {
    color: #7e7e7e;
}

/* ============================================================
   placeholder خطا
   ============================================================ */

.changePlaceHolder::-webkit-input-placeholder {
    color: #ff0000;
}

.changePlaceHolder::placeholder {
    color: #ff0000;
}

/* ============================================================
   موبایل و تبلت: تصویر به‌عنوان پس‌زمینهٔ کل صفحه
   ============================================================ */

@media (max-width: 800px) {
    .image-side {
        display: none !important;
    }

    .login-side {
        flex: 1 1 100%;
        width: 100%;
    }

    .login-form {
        margin: 0 auto;
        max-width: 100%;
    }
}


