
        * { 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, #FFE4E9 0%, #FFF0F5 25%, #FFE9F0 50%, #FFF5F8 75%, #FFE5EC 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(255,182,193,0.6));
        }

        @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(212,86,122,0.2)) drop-shadow(0 0 30px rgba(255,182,193,0.25));
            will-change: transform;
        }

        .big-heart::before {
            content: "❤️";
            background: linear-gradient(135deg, #FFB6C1 0%, #FFD1DC 50%, #FFC0CB 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @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(212,86,122,0.5);
            box-shadow: 0 0 0 3px rgba(255,182,193,0.3), 0 8px 25px rgba(212,86,122,0.15), 0 0 20px rgba(255,182,193,0.4);
            overflow: hidden;
            animation: photoGlow 3s ease-in-out infinite alternate;
        }

        @keyframes photoGlow {
            0%   { box-shadow: 0 0 0 3px rgba(255,182,193,0.3), 0 8px 25px rgba(212,86,122,0.1), 0 0 15px rgba(255,182,193,0.3); }
            100% { box-shadow: 0 0 0 6px rgba(255,182,193,0.8), 0 8px 30px rgba(212,86,122,0.25), 0 0 30px rgba(255,182,193,0.7); }
        }

        .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: #8B3A62;
            font-weight: 900;
            margin-bottom: 4px;
            text-shadow: 0 2px 6px rgba(255,255,255,0.9);
            letter-spacing: 1px;
        }

        .login-subtitle {
            font-size: 0.95em;
            color: #D4567A;
            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(255,100,100,0.15);
            border: 2px solid rgba(255,100,100,0.3);
            color: #cc0000;
            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: #8B3A62;
            font-size: 0.92em;
            font-weight: 700;
            text-align: right;
            text-shadow: 0 1px 3px rgba(255,255,255,0.8);
        }

        .input-group input {
            width: 80%;
            padding: 8px 12px;
            border: 2px solid rgba(212,86,122,0.35);
            border-radius: 14px;
            font-size: 1.6em;
            font-weight: 900;
            font-family: 'Cairo', sans-serif;
            background: rgba(255,255,255,0.7);
            transition: all 0.3s ease;
            color: #8B3A62;
            text-align: center;
            backdrop-filter: blur(10px);
            letter-spacing: 3px;
        }

        .input-group input:focus {
            outline: none;
            border-color: #D4567A;
            background: rgba(255,255,255,0.92);
            box-shadow: 0 4px 18px rgba(212,86,122,0.2);
            transform: translateY(-2px);
        }

        .input-group input::placeholder {
            color: rgba(212,86,122,0.45);
            font-size: 0.65em;
            letter-spacing: 1px;
        }

        /* BUTTON */
        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #FFB6C1, #FFD1DC, #FFC0CB);
            border: 2.5px solid rgba(255,255,255,0.6);
            border-radius: 14px;
            color: #8B3A62;
            font-size: 1.15em;
            font-weight: 900;
            cursor: pointer;
            font-family: 'Cairo', sans-serif;
            box-shadow: 0 8px 25px rgba(212,86,122,0.2);
            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.3), transparent);
            transition: left 0.5s ease;
        }

        .login-btn:hover::before { left: 100%; }
        .login-btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 38px rgba(212,86,122,0.35);
            background: linear-gradient(135deg, #FFC0CB, #FFB6C1, #FFD1DC);
        }
        .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); }
            .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 { font-size: 280px; }
            .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;
  }
}
