/* --- Global Styles & Colors --- */
:root {
    --color-blue: #1976D2;      /* Knowledge Blue */
    --color-green: #4CAF50;     /* Future Green (for focus/accents) */
    --color-orange: #FF5722;    /* Insight Orange (for links/accents) */
    --color-white: #FFFFFF;
    --color-grey: #616161;
    --color-light-grey: #F5F5F5;
    --color-text-dark: #333333;
    --color-dark-overlay: rgba(0, 0, 0, 0.4); 
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl; 
    text-align: right;
    min-height: 100vh;
    overflow: hidden; 
}

/* --- 1. Background Video Section --- */
.forgot-password-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%); 
}

/* طبقة التعتيم (أخف قليلاً للسماح بظهور الفيديو بشكل أوضح) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.4), rgba(76, 175, 80, 0.4)); 
    z-index: 1;
}

/* --- 2. Recovery Card (النموذج العائم) --- */
.recovery-card {
    position: relative;
    z-index: 10;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5); /* ظل أكثر عمقاً (Magnificent) */
    width: 90%;
    max-width: 450px;
    text-align: center; /* توسيط محتوى البطاقة */
    animation: fadeIn 0.8s ease-out; 
}

/* أيقونة الاسترداد الكبيرة */
.recovery-icon-container {
    background-color: var(--color-blue);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -70px auto 20px auto; /* رفع الأيقونة لتظهر جزئياً فوق البطاقة */
    box-shadow: 0 5px 20px rgba(25, 118, 210, 0.5);
    transition: transform 0.3s;
}

.recovery-icon {
    color: var(--color-white);
    font-size: 30px;
}

.recovery-card:hover .recovery-icon-container {
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-header {
    /* نقل الشعار أعلى الـ Card لتجنب تداخله مع أيقونة القفل */
    display: none; 
}

.recovery-card h2 {
    font-size: 32px;
    color: var(--color-blue);
    margin-bottom: 5px;
}

.sub-heading {
    font-size: 16px;
    color: var(--color-grey);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--color-green); 
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); 
    outline: none;
}

/* زر إرسال رمز الاسترداد */
.btn-recovery-submit {
    width: 100%;
    background-color: var(--color-orange); /* استخدام اللون البرتقالي لزر الاسترداد */
    color: var(--color-white);
    padding: 15px;
    font-size: 18px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-recovery-submit:hover {
    background-color: #e64a19; 
}

/* رابط العودة لتسجيل الدخول */
.back-to-login {
    margin-top: 25px;
    font-size: 14px;
    color: var(--color-grey);
    text-align: center;
}

.back-to-login a {
    color: var(--color-blue); 
    font-weight: 700;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .recovery-card {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .recovery-icon-container {
        margin-top: -60px;
        width: 60px;
        height: 60px;
    }

    .recovery-icon {
        font-size: 25px;
    }
}