/* ==============================================
   PAGANI LUXURY - تسجيل الدخول المطور
   تصميم فاتح، لامع، عصري | خط النظام
   ألوان: وردي نيون، أزرق كهربائي، ذهبي فاتح
   بدون أي لون أسود
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(145deg, #FFF5F9 0%, #E8F0FF 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    direction: rtl;
}

.app-container {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    min-height: 100vh;
    position: relative;
    padding-bottom: 30px;
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.15);
}

/* ==============================================
   1. صورة الغلاف العلوية - لامعة متدرجة
   ============================================== */
.login-cover {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFB347, #FF6B9D, #3B82F6);
    background-size: 200% 200%;
    animation: shimmer 4s infinite alternate;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 180, 70, 0.4), rgba(59, 130, 246, 0.3));
}

/* العنوان على الصورة */
.cover-title {
    position: absolute;
    bottom: 30px;
    right: 24px;
    z-index: 5;
}

.cover-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.cover-title span {
    font-size: 0.85rem;
    color: #FFF7E8;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ==============================================
   2. المحتوى الرئيسي وضبط السحب
   ============================================== */
.login-content {
    padding: 0 16px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* ==============================================
   3. كارت الفورم الزجاجي اللامع
   ============================================== */
.form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 38px;
    padding: 28px 22px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(255, 200, 150, 0.5);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ==============================================
   4. مجموعات الإدخال
   ============================================== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #C2416B;
    letter-spacing: 0.3px;
    margin-right: 6px;
}

.input-group label i {
    color: #F59E0B;
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #FFE4D6;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    background: rgba(255, 248, 245, 0.9);
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: #FF9F4A;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 159, 74, 0.2);
}

.form-input::placeholder {
    color: #D6B0A8;
}

/* ==============================================
   5. رقم الهاتف
   ============================================== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-code {
    background: linear-gradient(145deg, #FFE8E0, #FFF0E6);
    color: #F59E0B;
    padding: 14px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid #FFD3B5;
}

.phone-input-wrapper .form-input {
    flex: 1;
}

/* ==============================================
   6. كلمة المرور
   ============================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-left: 48px;
}

.toggle-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #DC9E82;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-icon:hover {
    color: #FF8A5C;
}

/* ==============================================
   7. رسالة الخطأ والحالة
   ============================================== */
.status-message {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FF7A5C;
}

.status-message.success {
    color: #2DC4B0;
}

/* ==============================================
   8. زر تسجيل الدخول - لامع
   ============================================== */
.login-btn {
    width: 100%;
    padding: 15px;
    border-radius: 60px;
    border: none;
    background: linear-gradient(105deg, #FF9F4A, #FF5E7E);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255, 95, 126, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255, 95, 126, 0.5);
}

.login-btn:disabled {
    background: linear-gradient(105deg, #E0C8B5, #E0B8C2);
    color: #F5E6DC;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==============================================
   9. الروابط النصية الناعمة (نسيت و إنشاء حساب)
   ============================================== */
.forgot-link {
    display: block;
    text-align: center;
}

.forgot-link a {
    font-size: 0.85rem;
    text-decoration: none;
    color: #FF7A5C;
    font-weight: 600;
    transition: opacity 0.2s;
    display: inline-block;
}

.forgot-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: #FF9F4A;
}

/* تحسينات إضافية */
::selection {
    background: #FFB7B2;
    color: #4A1E2C;
}