/* منع الاسكرول الجانبي تماماً */
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* ضمان أن المحتوى لا يتجاوز عرض الشاشة */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* منع تداخل نموذج التسجيل مع الفوتر */
.login-container {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    margin-bottom: 100px !important;
}

/* ضمان عدم تداخل نموذج التسجيل مع الفوتر */
body {
    padding-bottom: 100px !important;
}

/* ضمان أن المحتوى الرئيسي لا يتداخل مع الفوتر على الهواتف */
@media (max-width: 768px) {
    body {
        padding-bottom: 50px !important;
    }

    .login-container {
        margin-bottom: 50px !important;
    }
}

/* منع تداخل نموذج التسجيل مع الفوتر في الشاشات الصغيرة */
@media (max-height: 800px) {
    .login-container {
        max-height: calc(100vh - 150px) !important;
        margin-bottom: 80px !important;
    }

    body {
        padding-bottom: 80px !important;
    }
}

/* إزالة علامات الاسكرول من الفوتر */
.main-footer,
footer {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* منع الاسكرول في الفوتر */



.content,
main {
    margin-top: 80px !important;
    padding-top: 0 !important;
}

/* التصميم الجديد - استخدام خلفية الـ layout */
body {
    font-family: 'Tajawal', sans-serif;
    color: white;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* الصورة العلوية */
.header-image {
    text-align: center;
    margin: -50px 0 20px 0;
    z-index: 2;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    animation: fadeInDown 1s ease-out;
    transition: all 0.3s ease;
}

.header-image img {
    width: 700px;
    max-width: 95%;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: block;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    pointer-events: none;
    -webkit-user-drag: none;
    filter: none;
}

.header-image img:hover {
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الحاوية الرئيسية */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px !important;
    -webkit-border-radius: 30px !important;
    -moz-border-radius: 30px !important;
    padding: 45px;
    width: 600px;
    max-width: 95%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 215, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    color: #333;
    position: relative;
    margin: -500px auto;
    z-index: 10;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.3s both;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-sizing: border-box;
    min-height: 450px;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 215, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 30px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* العنوان */
h2 {
    text-align: center;
    background: linear-gradient(135deg, #0A2A4F 0%, #1a4a7a 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    border-radius: 2px;
}

@keyframes titleGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.1);
    }
}

/* حقول الإدخال */
.input-group {
    text-align: right;
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-weight: 600;
    color: #0A2A4F;
    margin-bottom: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

label i {
    color: #FFD700;
    font-size: 16px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #0A2A4F;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    min-height: 55px;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15),
                0 8px 25px rgba(255, 215, 0, 0.25),
                inset 0 2px 4px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 1);
    outline: none;
    transform: translateY(-2px);
}

input[type="email"]:hover,
input[type="password"]:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

/* Floating label effect */
.input-group:focus-within label {
    color: #FFD700;
}

.input-group:focus-within label i {
    transform: scale(1.1);
    color: #FFD700;
}

.input-group.password-group {
    position: relative;
}

.input-group.password-group input[type="password"] {
    width: 100%;
    padding: 18px 25px;
    border-radius: 15px;
}

.input-group.password-group .toggle-password {
    display: none !important;
}

/* خيارات تسجيل الدخول */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FFD700;
    border-radius: 4px;
}

.remember-me label {
    margin-bottom: 0;
    cursor: pointer;
    color: #0A2A4F;
    font-weight: 500;
    font-size: 14px;
}

.remember-me:hover label {
    color: #FFD700;
}

.forgot-password a {
    display: none !important;
}

/* زر تسجيل الدخول */
.login-page-btn {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FFD700 100%);
    color: #0A2A4F;
    border: none;
    border-radius: 50px !important;
    -webkit-border-radius: 50px !important;
    -moz-border-radius: 50px !important;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4),
                0 4px 12px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Tajawal', sans-serif;
    min-height: 60px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.login-page-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-page-btn:hover::before {
    left: 100%;
}

.login-page-btn:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFD700 50%, #FFC107 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6),
                0 8px 20px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.6),
                0 0 30px rgba(255, 215, 0, 0.3);
}

.login-page-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.login-page-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-page-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.login-page-btn:hover i {
    transform: scale(1.1);
}

.fas{
    border-radius:20px
}
.plas{
    margin-top:400px
}

/* التنسيق المتجاوب */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
    }

    .main-footer,
    footer {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }



    .header-image {
        margin: -60px 0 20px 0;
    }

    .header-image img {
        width: 110%;
        max-width: 150% !important;
    }

    .login-container {
        width: 95% !important;
        max-width: 500px;
        padding: 30px 25px;
        border-radius: 20px;
        box-sizing: border-box !important;
        position: relative !important;
        margin: -320px auto !important;
        min-height: 350px;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    input[type="email"],
    input[type="password"] {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 22px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .login-page-btn {
        padding: 16px 20px;
        font-size: 16px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
    }

    .main-footer,
    footer {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ضمان أن الفوتر يظهر في أسفل الصفحة */


    .header-image {
        margin: -80px 0 20px 0;
    }

    .header-image img {
        width: 110%;
        max-width: 150% !important;
    }

    .login-container {
        width: 95% !important;
        padding: 25px 20px;
        border-radius: 18px;
        box-sizing: border-box !important;
        position: relative !important;
        margin: -320px auto !important;
        min-height: 300px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 20px;
        border-radius:20px
    }

    input[type="email"],
    input[type="password"] {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 25px;
    }

    .forgot-password {
        align-self: flex-end;
    }

    .login-page-btn {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 40px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-height: 700px) {
    .header-image {
        margin: -150px 0 0 0;
    }

    .header-image img {
        width: 400px;
        margin-bottom: -50px;
    }
}

[dir="rtl"] .input-group.password-group .toggle-password {
    left: 16px;
    right: auto;
}

    [dir="ltr"] .input-group.password-group .toggle-password {
        right: 16px;
        left: auto;
    }

/* ستايلات خاصة للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    body {
        min-height: 100vh !important;
    }

    .main-footer,
    footer {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    .header-image {
        margin: 50px 0 20px 0;
    }

    .header-image img {
        width: 130%;
        max-width: 150% !important;
    }

    .login-container {
        width: 98% !important;
        padding: 20px 15px;
        border-radius: 15px;
        position: relative !important;
        margin: -300px auto !important;
        min-height: 280px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .input-group {
        margin-bottom: 10px;
    }

    input[type="email"],
    input[type="password"] {
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 18px !important;
    }

    .login-options {
        margin-bottom: 10px;
    }

    .login-page-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}
