﻿@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/eot/IRANSansWeb\(FaNum\).eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), url('../fonts/woff2/IRANSansWeb\(FaNum\)_Medium.woff2') format('woff2'), url('../fonts/woff/IRANSansWeb\(FaNum\)_Medium.woff') format('woff'), url('../fonts/ttf/IRANSansWeb\(FaNum\)_Medium.ttf') format('truetype');
}

:root {
    --primary-color: #2a9d8f;
    --primary-light-color: #47e3d1;
    --primary-gray: #f7f9fc;
    --milkycolor: #FFC300;
    --pallorange: #f4a261;
    --ocherred: #e76f51;
    --primary-red: #f22d33;
    --secondary-color: #ffffff;
    --primary-gray-color: #f8f8f8;
    --light-color: #f0eded;
    --darkgreen: #264653;
    --a-tag-color: #333;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-10: #F8F8F8;
    --bs-gray-50: #fafcfd;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
}

body {
    direction: rtl;
    margin: 0;
    color: var(--a-tag-color) !important;
    line-height: 1.7;
    background: radial-gradient(circle at top right, #f8fbff 0%, #eef2f7 100%);
    min-height: 100vh;
}

* {
    box-sizing: border-box;
    font-family: IRANSans, Tahoma, sans-serif;
}

/* اصلاح کانتینر اصلی */
.container-login-register {
    max-width: 500px; /* عرض کمی کمتر برای شکیل‌تر شدن */
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin: 50px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02), 0 20px 48px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .container-login-register::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, var(--primary-color), var(--milkycolor));
    }

    .container-login-register:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.04), 0 30px 60px rgba(0, 0, 0, 0.08);
    }

.conteiner-login-register-item h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: var(--darkgreen);
}

/* اصلاح اینپوت گروپ و آیکون‌ها */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

    .input-group input {
        width: 100%;
        height: 52px;
        padding: 12px 45px 12px 45px !important; /* فاصله دقیق برای آیکون‌های دو طرف */
        border: 2px solid #e1e5ee;
        border-radius: 12px;
        outline: none;
        transition: all 0.3s ease;
        background: #f9fbff;
        margin: 0 !important; /* حذف مارجین اضافی که دکمه داشت */
    }

        .input-group input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.1);
            background: #fff;
        }

/* آیکون ثابت سمت راست */
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ba4b4;
    font-size: 18px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* آیکون چشم سمت چپ */
.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ba4b4;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    padding: 5px;
    transition: color 0.3s;
}

    .toggle-password:hover {
        color: var(--primary-color);
    }

/* نوار قدرت پسورد */
.strength-meter {
    height: 6px;
    width: 100%;
    background: #eee;
    margin-top: 5px; /* فاصله از اینپوت */
    border-radius: 10px;
    overflow: hidden;
}

    .strength-meter .bar {
        height: 100%;
        width: 0%;
        transition: all 0.5s ease;
    }

#strength-text {
    font-size: 11px;
    margin-top: 5px;
    margin-bottom: 15px;
    display: block;
    font-weight: bold;
    text-align: right;
}

/* رنگ‌های وضعیت */
.weak {
    background-color: #ff4d4d !important;
    width: 25% !important;
}

.medium {
    background-color: #ffa500 !important;
    width: 60% !important;
}

.strong {
    background-color: #2ecc71 !important;
    width: 100% !important;
}


/* رنگ‌های دکمه با تم شما */
.btn-grad {
    background: linear-gradient(90deg, var(--primary-color) 0%, #21867a 100%);
    color: white;
    border: none;
    height: 52px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    margin: 20px 0 !important;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

    .btn-grad:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
    }

/* اصلاح دکمه‌های شبکه اجتماعی */
.login-by {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e1e5ee;
    background: white;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    transition: all 0.3s;
}

    .social-btn:hover {
        background: #f8f9fa;
        border-color: var(--milkycolor);
        color: var(--darkgreen);
    }

    .social-btn i {
        font-size: 20px !important;
        margin: 0 !important;
    }

.google i {
    color: #db4437;
}

.github i {
    color: #333;
}

/* تیتر "ورود با دیگر حساب‌ها" */
.other-login-type-title {
    margin: 30px 0 20px;
    border-top: 1px solid #eee;
    text-align: center;
    position: relative;
}

    .other-login-type-title strong {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        padding: 0 15px;
        font-size: 13px;
        color: #888;
    }

.loginpage-register-link {
    margin-top: 20px;
    font-size: 14px;
}

    .loginpage-register-link a {
        color: var(--primary-color);
        font-weight: bold;
    }

.header-homepage-login-register {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-homepage-login-register h2 {
    margin: 0;
    font-size: 24px;
}

.header-homepage-login-register a {
    text-decoration: none; /* حذف خط زیر لینک */
    color: #555; /* رنگ متن */
    font-size: 14px;
    transition: color 0.3s;
    display: flex; /* برای هم‌ترازی آیکون و متن */
    align-items: center;
    gap: 8px; /* فاصله بین آیکون و متن */
}

.header-homepage-login-register a:hover {
    color: var(--primary-color); /* رنگ