﻿/* استایل‌های صفحات احراز هویت */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-header .logo {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: white;
        text-decoration: none;
        font-size: 24px;
        font-weight: bold;
    }

        .auth-header .logo i {
            font-size: 28px;
        }

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

    .auth-card h2 {
        text-align: center;
        margin-bottom: 30px;
        color: #333;
        font-size: 24px;
    }

/* تب‌ها */
.tab-container {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    flex: 1;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

    .tab.active {
        color: #4CAF50;
        border-bottom-color: #4CAF50;
        font-weight: bold;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        box-sizing: border-box;
        font-size: 14px;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #4CAF50;
            outline: none;
        }

        .form-group input:read-only {
            background-color: #f5f5f5;
            cursor: not-allowed;
        }

.required {
    color: #e53935;
}

/* دکمه‌ها */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    }

.resend-btn {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: not-allowed;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .resend-btn:enabled {
        background: #2196F3;
        color: white;
        border-color: #2196F3;
        cursor: pointer;
    }

        .resend-btn:enabled:hover {
            background: #1976D2;
        }

.logout-btn {
    padding: 8px 16px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

    .logout-btn:hover {
        background: #c62828;
    }

/* بخش OTP */
.otp-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.timer {
    text-align: center;
    font-size: 14px;
    color: #e53935;
    margin: 10px 0;
    font-weight: bold;
}

/* پیام‌ها */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.error-message {
    background: #ffebee;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

.success-message {
    background: #e8f5e8;
    color: #43a047;
    border: 1px solid #c8e6c9;
}

/* فوتر */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

    .auth-footer p {
        margin-bottom: 15px;
        color: #666;
    }

    .auth-footer a {
        color: #4CAF50;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .auth-footer a:hover {
            color: #45a049;
        }

.back-home {
    display: inline-block;
    color: #666 !important;
    font-size: 14px;
}

/* هدر پروفایل */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .profile-header h2 {
        margin-bottom: 0;
    }

/* ریسپانسیو */
@media (max-width: 480px) {
    .auth-card {
        padding: 25px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
