﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'IRANSans';
    src: url('../../fonts/iransans/iransansweb.eot') format('embedded-opentype'), url('../../fonts/iransans/iransansweb.ttf') format('truetype'), url('../../fonts/iransans/iransansweb.woff') format('woff');
}
body {
    font-family: 'IRANSans', sans-serif;
    /*font-family: 'Vazir', 'Tahoma', sans-serif;*/
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
}

/* اشکال تزئینی پس‌زمینه */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -150px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
}

/* کانتینر اصلی */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* کارت لاگین */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
    animation: slideUp 0.6s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* هدر کارت */
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .login-header::before {
        content: '';
        position: absolute;
        width: 150%;
        height: 150%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        top: -25%;
        left: -25%;
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

    .login-icon i {
        font-size: 40px;
        color: white;
    }

.login-header h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* بدنه کارت */
.login-body {
    padding: 35px 30px;
}

/* فرم گروه */
.input-group-custom {
    margin-bottom: 25px;
    position: relative;
}

    .input-group-custom label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #555;
        font-size: 14px;
    }

.input-wrapper {
    position: relative;
}

    .input-wrapper i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        font-size: 18px;
        transition: all 0.3s;
    }

    .input-wrapper input {
        width: 100%;
        padding: 14px 45px 14px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 15px;
        font-size: 14px;
        font-family: inherit;
        transition: all 0.3s;
        background: #f8f9fa;
    }

        .input-wrapper input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

            .input-wrapper input:focus + i {
                color: #667eea;
            }

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    transition: all 0.3s;
}

    .password-toggle:hover {
        color: #667eea;
    }

/* گزینه‌های اضافی */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .checkbox-custom input {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #667eea;
    }

    .checkbox-custom span {
        font-size: 13px;
        color: #666;
    }

.forgot-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

    .forgot-link:hover {
        color: #764ba2;
        text-decoration: underline;
    }

/* دکمه ورود */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

/* جداکننده */
.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e0e0e0;
    }

    .divider span {
        background: white;
        padding: 0 15px;
        position: relative;
        color: #999;
        font-size: 12px;
    }

/* اطلاعات سیستم */
.system-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

    .system-info p {
        font-size: 12px;
        color: #999;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

/* اعتبارسنجی خطا */
.validation-summary {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #e74c3c;
    font-size: 13px;
    list-style: none;
}

    .validation-summary ul {
        margin: 0;
        padding-right: 20px;
    }

.text-danger {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .login-card {
        max-width: 95%;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-body {
        padding: 25px 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }
}

/* انیمیشن برای اینپوت‌ها */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.input-wrapper.error input {
    border-color: #e74c3c;
    animation: shake 0.3s ease;
}
