/* استایل‌های صفحه ورود و احراز هویت */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* استایل‌های عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Peyfa', 'Peyda', Tahoma, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/Background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
    color: var(--dark-color);
}

/* کانتینر اصلی */
.login-container, .register-container {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.8s ease;
    margin: 20px;
}

/* هدر */
.login-header, .register-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 5px;
}

.system-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.system-description {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
}

/* کارت شیشه‌ای */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 50px 40px;
    margin-bottom: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.glass-card.animate-in {
    animation: slideUp 0.6s ease;
}

.form-title {
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.form-title i {
    color: var(--secondary-color);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
}

/* آلرت‌ها */
.alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.5s ease;
    font-weight: 500;
}

.alert-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border: 2px solid rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border: 2px solid rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

/* فرم */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.form-group label i {
    color: var(--secondary-color);
    width: 20px;
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Peyfa', 'Peyda', sans-serif;
    font-size: 16px;
    color: var(--dark-color);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #95a5a6;
    opacity: 0.8;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

/* گزینه‌های فرم */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}

.forgot-password:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.1);
    text-decoration: none;
}

/* دکمه‌ها */
.btn {
    padding: 18px 25px;
    border: none;
    border-radius: 14px;
    font-family: 'Peyfa', 'Peyda', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #1a5276);
    color: white;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
}

.btn-loading {
    display: none;
    margin-right: 10px;
}

/* بخش ثبت‌نام */
.register-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
}

.register-section p {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.register-section .support-phone {
    display: block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.register-section .support-phone:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.register-section .support-phone i {
    margin-left: 8px;
}

/* اطلاعات پشتیبانی - حذف شده و به فوتر منتقل شده */

/* فوتر */
.login-footer, .register-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
    padding: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-footer a, .register-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.login-footer a::after, .register-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    right: 0;
    background: #3498db;
    transition: width 0.3s ease;
}

.login-footer a:hover, .register-footer a:hover {
    color: #2980b9;
}

.login-footer a:hover::after, .register-footer a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* خطاهای فرم */
.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.form-error i {
    font-size: 16px;
}

/* استایل‌های مخصوص صفحه ثبت‌نام */
.register-form-container {
    max-width: 600px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 50px;
    left: 50px;
    height: 3px;
    background: #e1e8ed;
    z-index: 1;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e1e8ed;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    border: 4px solid white;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.step-label {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--dark-color);
    font-weight: 600;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .login-container, .register-container {
        max-width: 100%;
        padding: 0 15px;
        margin: 10px;
    }
    
    .glass-card {
        padding: 40px 25px;
    }
    
    .system-title {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .register-form-container {
        padding: 30px 20px;
    }
    
    .progress-steps::before {
        right: 40px;
        left: 40px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .system-title {
        font-size: 22px;
    }
    
    .system-description {
        font-size: 16px;
    }
    
    .form-control {
        padding: 16px 15px;
        font-size: 15px;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .glass-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-label {
        text-align: right;
    }
}