/* ===== CSS لتصميم عصري لصفحة الدخول (Glassmorphism & Vibrant) ===== */

/* خلفية عامة للصفحة */
.auth-page {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
}

/* دوائر خلفية للتأثير الجمالي */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.auth-page::before {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 107, 0.4);
    /* لون رئيسي فاتح */
    top: -50px;
    left: -50px;
}

.auth-page::after {
    width: 250px;
    height: 250px;
    background: rgba(79, 172, 254, 0.4);
    /* لون ثانوي */
    bottom: -50px;
    right: -50px;
}

/* حاوية المصادقة */
.auth-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    z-index: 2;
    color: #fff;
    transition: transform 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
}

/* الرأس */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    background: linear-gradient(90deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* التبويبات */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: rgba(255, 107, 107, 0.9);
    /* لون التبويب النشط */
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* النماذج */
.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    /* هام جداً */
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* أيقونة إظهار كلمة المرور */
.password-toggle {
    position: absolute;
    left: 15px;
    /* لأنه RTL */
    top: 42px;
    /* تعديل حسب موقع الـ input */
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: #fff;
}

/* الأزرار */
.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* التذييل */
.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.text-link {
    background: none;
    border: none;
    color: #FF6B6B;
    cursor: pointer;
    font-weight: 600;
    padding: 0 3px;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.text-link:hover {
    color: #ff8e8e;
}