* { font-family: 'Cairo', 'Segoe UI', sans-serif; }
        body {
            background: #1e4a3b;
            touch-action: pan-x pan-y;
            margin: 0;
            padding: 0;
        }
        .auth-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }
        .auth-card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 48px;
            padding: 40px 35px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            max-width: 500px;
            width: 100%;
            transition: transform 0.2s;
            border: 1px solid rgba(30, 74, 59, 0.08);
        }
        .auth-card:hover { transform: translateY(-4px); }
        .logo {
            direction: ltr;
        }
        .logo a {
            font-size: 2.1rem;
            font-weight: 800;
            color: #f9c74f;
            text-decoration: none;
        }
        .logo a i { color: #f9c74f; margin-left: 8px; }
        .form-control, .input-group-text { border-radius: 60px; padding: 12px 18px; }
        .form-control:focus { border-color: #f9c74f; box-shadow: 0 0 0 4px rgba(249,199,79,0.25); }
        .btn-primary {
            background: #1e4a3b;
            border: none;
            border-radius: 60px;
            padding: 14px;
            font-weight: 800;
            width: 100%;
        }
        .btn-primary:hover { background: #f9c74f; color: #1e4a3b; transform: translateY(-2px); }
        .alert-custom { border-radius: 60px; border-right: 6px solid; padding: 14px 22px; }
        .alert-danger { background: #fee2e2; border-right-color: #dc2626; }
        .alert-success { background: #d1fae5; border-right-color: #10b981; }
        .password-toggle { cursor: pointer; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); z-index: 10; }
        .verification-code-input { display: flex; gap: 12px; justify-content: center; }
        .code-digit { width: 60px; height: 70px; text-align: center; font-size: 32px; font-weight: 800; border-radius: 20px; border: 2px solid #e2e8f0; background: white; }
        .code-digit:focus { border-color: #f9c74f; outline: none; transform: scale(1.02); }
        .loading-overlay {
            position: fixed; top:0; left:0; width:100%; height:100%;
            background: rgba(0,0,0,0.65); backdrop-filter: blur(10px);
            display: flex; justify-content: center; align-items: center; z-index: 9999;
        }
        .loading-card { background: white; border-radius: 40px; padding: 40px; text-align: center; max-width: 350px; }
        .loading-spinner { width: 80px; height: 80px; border: 5px solid #e2e8f0; border-top: 5px solid #f9c74f; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        /* تحسين مودال الأخطاء */
        .error-modal-overlay {
            position: fixed; top:0; left:0; width:100%; height:100%;
            background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
            display: none; justify-content: center; align-items: center; z-index: 1000;
        }
        .error-modal {
            background: white; border-radius: 28px; width: 90%; max-width: 500px;
            overflow: hidden; box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
            animation: modalSlide 0.3s ease-out;
        }
        @keyframes modalSlide {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .modal-header {
            background: #fee2e2; padding: 15px 20px; display: flex;
            justify-content: space-between; align-items: center;
            border-bottom: 1px solid #fecaca;
        }
        .modal-header h5 { margin: 0; color: #b91c1c; font-weight: 700; }
        .close-modal {
            font-size: 28px; cursor: pointer; color: #666;
            transition: 0.2s; line-height: 1;
        }
        .close-modal:hover { color: #b91c1c; }
        .modal-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
        .error-item {
            padding: 12px 15px; margin: 8px 0; background: #fff0f0;
            border-radius: 16px; border-right: 4px solid #dc2626;
            display: flex; align-items: center; gap: 10px;
            color: #991b1b; font-weight: 500;
        }
        .modal-footer {
            padding: 15px 20px; border-top: 1px solid #e2e8f0;
            text-align: left; display: flex; justify-content: flex-end;
        }
        .modal-footer button {
            background: #1e4a3b; color: white; border: none;
            padding: 10px 28px; border-radius: 60px; font-weight: 600;
            cursor: pointer; transition: 0.2s; font-size: 0.95rem;
        }
        .modal-footer button:hover {
            background: #f9c74f; color: #1e4a3b; transform: translateY(-2px);
        }
        .info-badge {
            background: rgba(13, 202, 240, 0.1); border-radius: 60px;
            padding: 8px 16px; display: inline-flex; align-items: center;
            gap: 8px; font-size: 0.85rem; color: #0c6b7e;
        }
        @media (max-width: 576px) {
            .auth-card { padding: 28px 20px; }
            .code-digit { width: 48px; height: 58px; font-size: 26px; }
        }