/* ------------------------------- */
/* تنظیمات اصلی و فونت‌ها */
/* ------------------------------- */
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    direction: rtl;
    background-image: url('../assets/pics/5.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
}

@font-face {
    font-family: "lalezar";
    src: url("../assets/font/lalezar.ttf");
}
@font-face {
    font-family: "vazir";
    src: url(../assets/font/Vazir.ttf);
}
@font-face {
    font-family: "iransans";
    src: url("../assets/font/iran-sans.ttf");
}

/* شفافیت پس‌زمینه */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* ------------------------------- */
/* تنظیمات اصلی هدر (همون کد خودت) */
/* ------------------------------- */
.header {
    width: 100%;
    height: 75px;
    background-color: #6ba7d7;
    display: flex;
    border-radius: 3px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
}

/* سکشن اول هدر */
.header-div-sec1 {
    width: 20%;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "iransans";
    border-right: 2px solid yellow;
}

/* نوشته لوگو */
.header-div-sec1 p {
    font-size: 22px;
    color: white;
    margin: 0;
}

.header-div-sec1 a {
    text-decoration: none;
    color: white;
}

/* قسمت منو */
.header-div-sec2 {
    width: 80%;
    height: 75px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-family: "vazir";
}

/* نوشته منو */
.header-div-sec2 p {
    font-size: 18px;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-div-sec2 a {
    text-decoration: none;
    padding: 10px 20px;
    color: white;
    border-radius: 90px;
    display: inline-block;
}

/* هاور منو */
.header-div-sec2 p a:hover {
    transition: 0.3s;
    color: black;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 90px;
}

/* ------------------------------- */
/* فرم ورود (LOGIN FORM) */
/* ------------------------------- */
.loginform {
    width: 480px;
    max-width: 90%;
    background: rgba(20, 25, 35, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem 1.8rem;
    margin: 120px auto 40px auto;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form-label {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "vazir";
    color: #f0f3f8;
    margin: 12px 0 6px 0;
}

.login-form-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    color: white;
    font-family: "vazir";
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: right;
    box-sizing: border-box;
}

.login-form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffb347;
    box-shadow: 0 0 8px rgba(255, 180, 70, 0.4);
}

.login-form-input::placeholder {
    color: #cddcec;
    font-size: 0.8rem;
    opacity: 0.7;
}

.login-submit {
    width: 100%;
    padding: 10px;
    margin-top: 24px;
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    border: none;
    border-radius: 60px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    font-family: "lalezar";
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff9f2e, #f57c00);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#login-txtmsg {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    font-family: "vazir";
    color: #ffd966;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
    width: auto;
}

#login-txtmsg:hover {
    color: #ffb347;
}

/* پیام خطا / موفقیت */
.form-message {
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    padding: 6px;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.5);
    font-family: "vazir";
}

/* ------------------------------- */
/* پنل ثبت‌نام */
/* ------------------------------- */
.signin-side {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%) scale(0.9);
    width: 480px;
    max-width: 90%;
    background: rgba(18, 25, 45, 0.97);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    padding: 1.8rem;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.signin-side.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translate(50%, -50%) scale(1);
}

.signin-user {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signin-user h3 {
    text-align: center;
    color: #ffb347;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: "lalezar";
}

.signin-user label {
    color: #eef4ff;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: right;
    font-family: "vazir";
}

.signin-user input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px 14px;
    color: white;
    outline: none;
    font-size: 0.85rem;
    font-family: "vazir";
    transition: 0.2s;
}

.signin-user input:focus {
    border-color: #ffb347;
    background: rgba(255, 255, 255, 0.12);
}

.signup-btn {
    margin-top: 14px;
    background: linear-gradient(135deg, #3b8db0, #1f5e7e);
}

.signup-btn:hover {
    background: linear-gradient(135deg, #2c7da0, #165a78);
}

.close-signup {
    position: absolute;
    top: 14px;
    left: 18px;
    background: rgba(255, 80, 80, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-signup:hover {
    background: #ff4d4d;
    transform: scale(1.05);
}

.signin-side p {
    text-align: center;
    margin-top: 14px;
    color: #bbb;
    font-size: 0.7rem;
    font-family: "vazir";
}

/* ------------------------------- */
/* ریسپانسیو */
/* ------------------------------- */
@media (max-width: 768px) {
    .header-div-sec1 {
        width: 30%;
    }
    
    .header-div-sec1 p {
        font-size: 16px;
    }
    
    .header-div-sec2 {
        width: 70%;
    }
    
    .header-div-sec2 a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .loginform {
        margin: 100px auto 30px auto;
        padding: 1.3rem;
    }
}

@media (max-width: 550px) {
    .header-div-sec1 p {
        font-size: 12px;
    }
    
    .header-div-sec2 a {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .loginform {
        margin-top: 90px;
        padding: 1rem;
    }
    
    .signin-side {
        padding: 1.2rem;
    }
}