:root {
    --primary: #226156;
    --primary-dark: #19423A;
    --primary-light: #286457;
    --secondary: #CCA556;
    --secondary-light: #AC975A;
    --accent: #B5AB79;
    --light: #f8f9fa;
    --dark: #355A53;
    --mid: #3D625A;
    --mid-light: #466962;
    --transition: all 0.4s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shade-1: #12322C;
    --shade-2: #19423A;
    --shade-3: #226156;
    --shade-4: #2B7A6E;
    --shade-5: #3D9B88;
    --gradient-dark-original: linear-gradient(to bottom, var(--shade-1), var(--shade-2), var(--shade-3), var(--shade-4), var(--shade-5));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--gradient-dark-original);
    background-size: 100% 200%;
    animation: gradientMove 7s ease-in-out infinite alternate;
    font-family: 'Tajawal', sans-serif;
}

@keyframes gradientMove {
    0% {
        background-position: top;
    }

    100% {
        background-position: bottom;
    }
}

.navbar {
    box-shadow: none;
    position: relative;
    z-index: 1000;
    margin-top: 30px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo-nav img {
    height: 50px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0 8px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links li a i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-links li a.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 165, 86, 0.4);
}

.nav-links li a.active:hover {
    background: var(--secondary-light);
}

.nav-btn {
    background: var(--secondary);
    padding: 10px 25px !important;
    box-shadow: 0 4px 15px rgba(204, 165, 86, 0.4);
}

.nav-btn:hover {
    background: var(--secondary-light) !important;
    transform: translateY(-3px);
}

.mobile-menu {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

header {
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;
}

.main-content {
    display: flex;
    min-height: calc(100vh - 70px);
}

.login-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: white;
    text-align: center;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease;
}

.login-form h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.login-form h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 500;
}


  
.powered-by {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.powered-by img {
    height: 65px; 
    width:278px;/* عدّل الحجم حسب اللوجو */
}
.powered-by img {
        transition: transform 0.3s ease;
    }

    .powered-by img:hover {
        transform: scale(1.1);
    }

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(204, 165, 86, 0.3);
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--secondary), var(--secondary-light));
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(204, 165, 86, 0.4);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 165, 86, 0.6);
    background: linear-gradient(to right, var(--secondary-light), var(--secondary));
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer p {
    margin-bottom: 10px;
    color: var(--mid);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.welcome-message {
    max-width: 600px;
    animation: fadeIn 1s ease;
}

.welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

footer {
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 10px 0;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 8px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .nav-links {
     
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        top: 70px;
        display: flex;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        color: white;
        
        position: fixed;
        background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    .main-content {
        flex-direction: column;
    }

    .image-section,
    .login-section {
        flex: none;
        width: 100%;
    }

    .image-section {
        padding: 40px 20px;
    }

    .login-form {
        max-width: 600px;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }

    .welcome-message p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 30px 20px;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo-nav img {
        height: 30px;
        
    }
     .navbar-container{
        display: flex;
        justify-content: space-around;
    }

    .mobile-menu {
        font-size: 1.5rem;
    }

    .nav-links {
        top: 60px;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .login-section,
    .image-section {
        padding: 20px 10px;
    }

    .welcome-message h2 {
        font-size: 1.5rem;
    }

    .welcome-message p {
        font-size: 0.9rem;
    }

    .login-form h2 {
        font-size: 1.3rem;
    }

    .form-group label,
    .form-group input,
    .form-footer a {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}