/* منع الاسكرول الجانبي تماماً */
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;
}

.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.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    width: 600px;
    max-width: 95%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    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: 1px solid rgba(255, 255, 255, 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, 255, 255, 0.15);
}

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

/* العنوان */
h2 {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

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

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

label {
    display: block;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    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;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    transform: translateY(-2px);
}

input[type="email"]:hover,
input[type="password"]:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

/* Floating label effect */
.input-group:focus-within label {
    transform: scale(0.9);
    color: #667eea;
}

.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: 15px;
    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: #667eea;
    border-radius: 4px;
}

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

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

/* زر تسجيل الدخول */
.login-page-btn {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    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(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Tajawal', sans-serif;
    min-height: 60px;
}

.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, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.login-page-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.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: -30px 0 20px 0;
    }

    .header-image img {
        width: 600px;
        max-width: 95% !important;
    }

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

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

    input[type="email"],
    input[type="password"] {
        padding: 14px 18px;
        font-size: 15px;
        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: -30px 0 20px 0;
    }

    .header-image img {
        width: 500px;
        max-width: 95% !important;
    }

    .login-container {
        width: 95% !important;
        padding: 25px 20px;
        border-radius: 18px;
        box-sizing: border-box !important;
        position: relative !important;
        margin: -300px 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: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius:20px!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: -30px 0 20px 0;
    }

    .header-image img {
        width: 100%;
        max-width: 100% !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;
    }

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

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