
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Cairo', sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
            overflow-y: auto;
            background: linear-gradient(135deg, #C8D8E8 0%, #D6E4F0 25%, #BFD0E0 50%, #D0DFF0 75%, #C2CEDC 100%);
            background-size: 400% 400%;
            animation: gradientShift 20s ease infinite;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
            -webkit-overflow-scrolling: touch;
        }

        @keyframes gradientShift {
            0%   { background-position: 0% 50%; }
            50%  { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* FLOATING HEARTS */
        .floats-container {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .float-item {
            position: absolute;
            bottom: -80px;
            opacity: 0;
            animation: floatUp 14s infinite ease-in-out;
            filter: drop-shadow(0 0 8px rgba(70,110,160,0.35));
        }

        @keyframes floatUp {
            0%   { transform: translateY(0) rotate(0deg) scale(0.5); opacity: 0; }
            10%  { opacity: 0.9; }
            50%  { opacity: 0.8; }
            90%  { opacity: 0.5; }
            100% { transform: translateY(-110vh) rotate(20deg) scale(1.2); opacity: 0; }
        }

        .float-item:nth-child(1) { left: 5%;  font-size: 38px; animation-delay: 0s;   animation-duration: 13s; }
        .float-item:nth-child(2) { left: 18%; font-size: 32px; animation-delay: 2.5s; animation-duration: 16s; }
        .float-item:nth-child(3) { left: 35%; font-size: 44px; animation-delay: 5s;   animation-duration: 12s; }
        .float-item:nth-child(4) { left: 55%; font-size: 34px; animation-delay: 7s;   animation-duration: 15s; }
        .float-item:nth-child(5) { left: 72%; font-size: 40px; animation-delay: 1s;   animation-duration: 14s; }
        .float-item:nth-child(6) { left: 88%; font-size: 30px; animation-delay: 9s;   animation-duration: 11s; }

        /* MAIN */
        .login-container {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 900px;
            width: 100%;
        }

        /* HEART */
        .heart-container {
            position: relative;
            width: 650px;
            height: 600px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .big-heart {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 550px;
            animation: heartBeat 2.5s infinite;
            filter: drop-shadow(0 10px 40px rgba(70,110,160,0.18)) drop-shadow(0 0 30px rgba(140,170,210,0.22));
            will-change: transform;
        }

        /* Heart — lighter dusty blue shade */
        .big-heart::before {
            content: "";
            display: block;
            width: 500px;
            height: 500px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cdefs%3E%3ClinearGradient id='blue-gradient' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2390BDD8'/%3E%3Cstop offset='35%25' stop-color='%237AAEC8'/%3E%3Cstop offset='70%25' stop-color='%23A8D0E6'/%3E%3Cstop offset='100%25' stop-color='%236898B8'/%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath d='M50 85 C50 85 5 55 5 28 C5 14 16 5 28 5 C36 5 43 9 50 17 C57 9 64 5 72 5 C84 5 95 14 95 28 C95 55 50 85 50 85Z' fill='url(%23blue-gradient)'/%3E%3C%2Fsvg%3E") no-repeat center/contain;
        }

        @keyframes heartBeat {
            0%, 100% { transform: scale(1); }
            10%, 30% { transform: scale(1.05); }
            20%, 40% { transform: scale(1); }
        }

        /* CONTENT INSIDE HEART */
        .login-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 65%;
            z-index: 3;
            padding: 30px 25px;
        }

        /* CIRCULAR PHOTO */
        .photo-circle-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 14px;
        }

        .photo-circle {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 4px solid rgba(70,110,160,0.5);
            box-shadow: 0 0 0 3px rgba(140,170,210,0.3), 0 8px 25px rgba(70,110,160,0.15), 0 0 20px rgba(140,170,210,0.4);
            overflow: hidden;
            animation: photoGlow 3s ease-in-out infinite alternate;
        }

        @keyframes photoGlow {
            0%   { box-shadow: 0 0 0 3px rgba(140,170,210,0.3), 0 8px 25px rgba(70,110,160,0.1), 0 0 15px rgba(140,170,210,0.3); }
            100% { box-shadow: 0 0 0 6px rgba(140,170,210,0.75), 0 8px 30px rgba(70,110,160,0.25), 0 0 30px rgba(140,170,210,0.65); }
        }

        .photo-circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .photo-circle-wrap.hidden {
            display: none;
        }

        /* TITLES */
        .login-title {
            font-size: 1.9em;
            color: #4A2E18;
            font-weight: 900;
            margin-bottom: 4px;
            text-shadow: 0 2px 6px rgba(255,255,255,0.95);
            letter-spacing: 1px;
        }

        .login-subtitle {
            font-size: 0.95em;
            color: #6B4226;
            margin-bottom: 20px;
            font-weight: 600;
            text-shadow: 0 1px 4px rgba(255,255,255,0.7);
            letter-spacing: 2px;
        }

        /* ERROR */
        .error-msg {
            background: rgba(180,80,60,0.12);
            border: 2px solid rgba(180,80,60,0.28);
            color: #8B2500;
            padding: 10px;
            border-radius: 12px;
            margin-bottom: 14px;
            font-size: 0.9em;
        }

        /* FORM */
        .input-group { margin-bottom: 16px; }

        .input-group label {
            display: block;
            margin-bottom: 7px;
            color: #4A2E18;
            font-size: 0.92em;
            font-weight: 700;
            text-align: right;
            text-shadow: 0 1px 3px rgba(255,255,255,0.85);
        }

        .input-group input {
            width: 80%;
            padding: 8px 12px;
            border: 2px solid rgba(70,110,160,0.35);
            border-radius: 14px;
            font-size: 1.6em;
            font-weight: 900;
            font-family: 'Cairo', sans-serif;
            background: rgba(240,246,255,0.72);
            transition: all 0.3s ease;
            color: #4A2E18;
            text-align: center;
            backdrop-filter: blur(10px);
            letter-spacing: 3px;
        }

        .input-group input:focus {
            outline: none;
            border-color: #4A6EA8;
            background: rgba(240,246,255,0.94);
            box-shadow: 0 4px 18px rgba(70,110,160,0.2);
            transform: translateY(-2px);
        }

        .input-group input::placeholder {
            color: rgba(70,110,160,0.45);
            font-size: 0.65em;
            letter-spacing: 1px;
        }

        /* BUTTON */
        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #8B5E3C, #A0724E, #7A4F30);
            border: 2.5px solid rgba(255,255,255,0.3);
            border-radius: 14px;
            color: #FFF8F0;
            font-size: 1.15em;
            font-weight: 900;
            cursor: pointer;
            font-family: 'Cairo', sans-serif;
            box-shadow: 0 8px 25px rgba(70,40,20,0.25);
            transition: all 0.4s ease;
            margin-top: 8px;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        .login-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: left 0.5s ease;
        }

        .login-btn:hover::before { left: 100%; }
        .login-btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 38px rgba(70,40,20,0.38);
            background: linear-gradient(135deg, #7A4F30, #8B5E3C, #A0724E);
        }
        .login-btn:active { transform: translateY(-1px); }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            body { padding: 20px 15px; }
            .heart-container { width: 400px; height: 400px; }
            .big-heart { font-size: 350px; animation: none; transform: translateZ(0) scale(1); }
            .big-heart::before { width: 320px; height: 320px; }
            .login-content { width: 75%; padding: 20px; }
            .photo-circle { width: 75px; height: 75px; animation: none; }
            .login-title { font-size: 1.45em; }
            .login-subtitle { font-size: 0.82em; margin-bottom: 16px; }
            .input-group { margin-bottom: 13px; }
            .input-group label { font-size: 0.88em; }
            .input-group input { padding: 11px 13px; font-size: 0.92em; }
            .login-btn { padding: 13px; font-size: 1.05em; }
        }

        @media (max-width: 480px) {
            .heart-container { width: 320px; height: 320px; }
            .big-heart::before { width: 260px; height: 260px; }
            .login-content { width: 80%; padding: 14px; }
            .photo-circle { width: 62px; height: 62px; }
            .login-title { font-size: 1.25em; }
            .login-subtitle { font-size: 0.8em; }
        }
    
/* ===== إصلاحات iOS =====
   سفاري بيعمل زووم إجباري على أي خانة إدخال حجم خطها أقل من 16px، فالصفحة
   بتتحرك والكيبورد بيطلع والزائر بيحس إنها علّقت. 16px بالظبط بيلغي الزووم.
   (ملاحظة: user-scalable=no مش بيمنعه — iOS بيتجاهله من إصدار 10) */
@media (max-width: 900px) {
  input, textarea, select { font-size: 16px !important; }
}
/* الكيبورد مايغطيش الخانة، والتمرير يبقى ناعم على iOS */
input, textarea { -webkit-appearance: none; border-radius: inherit; }

/* ===== تخفيف الحِمل على الموبايل =====
   العناصر المتحركة كانت بتتكوّم: 3 قلوب كل 0.6 ثانية × عمر 15 ثانية
   = 75 عنصر متحرك في نفس اللحظة. المتصفح بيعيد رسمهم 60 مرة/ثانية
   وده بيخنق معالج الموبايل. */
.float-item, .heart, .petal, .bubble, .sparkle {
  will-change: transform, opacity;   /* يرسمهم على كارت الشاشة مش المعالج */
  contain: layout style paint;       /* يمنع إعادة حساب باقي الصفحة */
}
/* لو المستخدم مفعّل "تقليل الحركة" في إعدادات جهازه، نحترمها */
@media (prefers-reduced-motion: reduce) {
  .float-item, .heart, .petal, .bubble, .sparkle { display: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; }
}

/* ===== تحسين أداء الأنيميشن =====
   المشكلة: gradientShift بيحرّك background-position و photoGlow بيحرّك
   box-shadow — الاتنين مش بيشتغلوا على كارت الشاشة، فالمعالج بيعيد رسم
   الشاشة كلها 60 مرة في الثانية. على الموبايل ده بيعلّق وياكل البطارية.
   transform و opacity بس هما اللي بيشتغلوا على الكارت. */

/* نقول للمتصفح يحجز طبقة للقلوب — بيمنع إعادة الرسم */
.float-item {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* على الموبايل: نقلل القلوب ونوقف الأنيميشن التقيلة */
@media (max-width: 820px) {
  /* نسيب أول 10 قلوب بس بدل 24 */
  .float-item:nth-child(n+11) { display: none; }
  /* التدرج المتحرك: بيرسم الشاشة كلها كل فريم */
  body { animation: none !important; background-size: 100% 100% !important; }
  /* توهج الصورة: box-shadow متحرك = إعادة رسم كاملة */
  .photo-circle img, .photo-circle { animation: none !important; }
  /* الضبابية تقيلة على معالج الموبايل */
  * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* احترام إعداد "تقليل الحركة" في نظام المستخدم */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
