/* إعدادات عامة */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #191C19;
    color: #191C19;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* الحاوية الأساسية */
.min-h-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #191C19;
}

.login-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    min-height: 600px;
    height: auto;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 24px 32px;
}

/* الصور العلوية والسفلية */
.top-vector {
    position: absolute;
    top: -5px;
    left: -8px;
    width: 100px;
    height: auto;
    animation: moveAndPulse 4s ease-in-out infinite;
}

.bottom-vector {
    position: absolute;
    width: 200px;
    height: auto;
    top: 40px;
    left: 140px;
}

/* الحاوية الداخلية */
.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 80px;
    padding-top: 40px; /* Added padding-top to create space for the logo */
  }
  
  .login-container .logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    max-width: 150px;
  }
  
  .login-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #191C19;
    padding-top: 70px;
    margin-bottom: 40px;
    text-align: center;
  }

.login-content input {
    width: 100%;
    height: 48px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.login-content input:focus {
    outline: none;
    border-color: #27DE7D;
}

.link-container {
    text-align: left;
    margin-top: -8px;
    margin-bottom: 24px;
}

.link-container a {
    font-size: 0.875rem;
    color: #14673C;
}

.login-content button {
    width: 100%;
    height: 48px;
    padding: 12px;
    background-color: #27DE7D;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 24px;
}

.login-content button:hover {
    background-color: #20C870;
}

.link-group {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.link-group a {
    color: #14673C;
}

.login-footer {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    color: #757874;
    margin-top: 0;
}

.login-footer a {
    color: #14673C;
    font-weight: 500;
    margin-left: 4px;
}

/* الحركات */
@keyframes moveAndPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10px, -10px) scale(1.05);
    }
}

@keyframes growAndPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}



/* الشاشات المتوسطة (tablets) */
@media screen and (max-width: 768px) {
    .login-container {
        width: 95%;
        padding: 20px 24px;
        min-height: 550px;
    }

    .top-vector {
        width: 80px;
    }

    .bottom-vector {
        width: 160px;
        top: 30px;
        left: 120px;
    }

    .login-content {
        margin-top: 60px;
    }
}

/* الشاشات الصغيرة (mobile) */
@media screen and (max-width: 480px) {
    .login-container {
        width: 100%;
        padding: 16px 20px;
        min-height: 500px;
        border-radius: 12px;
    }

    .top-vector {
        width: 60px;
    }

    .bottom-vector {
        width: 120px;
        top: 25px;
        left: 100px;
    }

    .login-container h2 {
        font-size: 20px;
        padding-top: 60px;
        margin-bottom: 30px;
    }

    .login-content {
        gap: 12px;
        margin-top: 40px;
    }

    .login-content input,
    .login-content button {
        height: 44px;
    }
}
















/* رسالة النجاح والطبقة الشفافة */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
  }
  


    .error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    z-index: 1001;
  }
  
  .error-icon {
    width: 3rem;
    height: 3rem;
    color:  #dc3545;
    margin-bottom: 1rem;
  }
  


  .success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    z-index: 1001;
  }
  
  .success-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  