:root {
            --primary-color: #3E67A3;
            --secondary-color: #03A180;
            --success-color: #2ecc71;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
           font-family: 'Tajawal', sans-serif;
           background: linear-gradient(145deg, #f6f9fc 0%, #eef2f7 100%);
           min-height: 100vh;
           margin: 0;
           padding: 0;
         }

        .login-container {
         width: 100%;
         max-width: 480px;
         margin: 50px auto; /* هذا هو المهم - لتوسيط الحاوية */
         /* margin: 50px auto; */ /* أو استخدم هذا لإضافة مسافة من الأعلى والأسفل */
        }

      .login-card {
        background: #ffffff;
        border-radius: 32px;
        box-shadow: 0 25px 50px -12px rgba(62, 103, 163, 0.15);
        overflow: hidden;
        animation: fadeInUp 0.6s ease;
        border: 1px solid rgba(62, 103, 163, 0.1);
        backdrop-filter: blur(10px);
     }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            text-align: center;
            padding: 45px 30px;
            position: relative;
            overflow: hidden;
        }

        .login-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .login-header h1 {
            font-size: 2.2rem;
            margin-bottom: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            position: relative;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .login-header p {
            opacity: 0.95;
            font-size: 1.1rem;
            font-weight: 300;
            position: relative;
        }

        .login-body {
            padding: 40px 35px;
            background: #ffffff;
        }

        .login-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 35px;
            background: #f8fafd;
            padding: 6px;
            border-radius: 16px;
        }

        .tab-btn {
            flex: 1;
            padding: 14px 20px;
            border: none;
            background: transparent;
            font-family: 'Tajawal', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #64748b;
            border-radius: 12px;
        }

        .tab-btn.active {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 8px 20px -8px var(--primary-color);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .tab-content.active {
            display: block;
        }

        .form-group {
            margin-bottom: 24px;
           
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #1e293b;
            font-size: 0.95rem;
        }

        .input-with-icon {
            position: relative;
        }

        .input-with-icon i {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1.1rem;
            transition: color 0.3s ease;
        }

        .input-with-icon input {
            width: 100%;
            padding: 16px 50px 16px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            font-size: 1rem;
            font-family: 'Tajawal', sans-serif;
            transition: all 0.3s ease;
            background: #f8fafd;
        }

        .input-with-icon input:focus {
            border-color: var(--primary-color);
            outline: none;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(62, 103, 163, 0.1);
        }

        .input-with-icon input:focus + i {
            color: var(--primary-color);
        }

        .btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 16px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Tajawal', sans-serif;
            position: relative;
            overflow: hidden;
        }

        .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;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 30px -10px var(--primary-color);
        }

        .btn:hover::before {
            left: 100%;
        }

        .alert {
            padding: 16px 20px;
            border-radius: 16px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.95rem;
            animation: slideIn 0.4s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .alert-success {
            background: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .alert-error {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .verification-section {
            text-align: center;
        }

        .verification-header {
            margin-bottom: 30px;
        }

        .verification-header h3 {
            color: #1e293b;
            margin-bottom: 8px;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .verification-header p {
            color: #64748b;
            font-size: 1rem;
        }

        .email-display {
            background: #f1f5f9;
            padding: 14px 24px;
            border-radius: 100px;
            display: inline-block;
            margin-top: 15px;
            font-weight: 600;
            color: var(--primary-color);
            border: 1px dashed #cbd5e1;
            font-size: 1rem;
            direction: ltr;
        }

        .verification-input {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin: 35px 0 25px;
            direction: ltr;
        }

        .verification-input input {
            width: 60px;
            height: 70px;
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            background: #f8fafd;
            transition: all 0.2s ease;
            color: #1e293b;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .verification-input input:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 4px rgba(62, 103, 163, 0.15);
            transform: scale(1.05);
        }

        .info-box {
            background: #f8fafd;
            padding: 20px;
            border-radius: 20px;
            margin-bottom: 30px;
            border-right: 6px solid var(--primary-color);
            text-align: right;
            color: #334155;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .info-box i {
            color: var(--primary-color);
            margin-left: 10px;
        }

        .timer-container {
            margin: 25px 0;
        }

        .timer {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #f1f5f9;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            color: var(--primary-color);
            border: 1px solid #e2e8f0;
            font-size: 1.1rem;
        }

        .timer i {
            font-size: 1.2rem;
        }

        .timer.expired {
            color: #dc2626;
            background: #fef2f2;
        }

        .resend-container {
            margin-top: 30px;
            padding-top: 25px;
            border-top: 2px dashed #e2e8f0;
        }

        .resend-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: none;
            border: none;
            font-size: 1rem;
            padding: 12px 24px;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .resend-link:hover {
            background: #f1f5f9;
            color: var(--secondary-color);
            transform: translateY(-2px);
        }

        .back-to-login {
            margin-top: 25px;
        }

        .back-to-login a {
            color: #64748b;
            text-decoration: none;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: color 0.3s ease;
        }

        .back-to-login a:hover {
            color: var(--primary-color);
        }

        .password-strength {
            margin-top: 10px;
            height: 6px;
            background: #e2e8f0;
            border-radius: 3px;
            overflow: hidden;
        }

        .strength-bar {
            height: 100%;
            width: 0%;
            transition: all 0.3s ease;
            border-radius: 3px;
        }

        .strength-text {
            font-size: 0.85rem;
            margin-top: 6px;
            text-align: left;
            font-weight: 500;
        }

        .forgot-link {
            text-align: center;
            margin-top: 20px;
        }

        .forgot-link a {
            color: #64748b;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        .forgot-link a:hover {
            color: var(--primary-color);
        }

        @media (max-width: 480px) {
            .login-body { padding: 30px 20px; }
            .login-header { padding: 35px 20px; }
            .login-header h1 { font-size: 1.8rem; }
            .verification-input input {
                width: 50px;
                height: 60px;
                font-size: 1.6rem;
            }
            .tab-btn { padding: 12px; }
        }