@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Main page and background styling */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    color: #333;
    padding: 20px;
    position: relative; /* Added to make it a positioning context for the background */
}

body {
        background: url(../src/img/fond.JPG)  no-repeat center/cover; 
      }

/* The login form container (card) */
.login-card {
    background: #ffffffcc;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #f0f4f8;
    z-index: 1; /* Ensures the card is on top of the background */
}

.login-card h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #444;
}

/* Logo styling */
.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    cursor: pointer;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Form inputs and labels */
.form-group-login {
    margin-bottom: 25px;
    text-align: left;
}

.form-group-login label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #090909;
    font-weight: 500;
}

.form-group-login input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e7ee;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    color: #333;
}

.form-group-login input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Password input with toggle icon */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 40px;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.password-toggle-icon:hover {
    color: #555;
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    background-color: #fdf0f0;
    border: 1px solid #f9dcdc;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Login button */
.button-container {
    text-align: center;
    margin-top: 30px;
}

.button-container button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-container button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}