@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #222;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.icon-container {
    width: 100px;
    height: 60px;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    /* border-radius: 50px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); */
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.icon-container img {
    /* font-size: 32px; */
    /* color: white; */
    z-index: 1;
    background-size: contain;      /* ou cover, selon le besoin */
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;                  /* à adapter */
    height: 100%; 
}

.subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.login-container {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3);
    width: 100%;
    max-width: 420px;
    text-align: center;
    transition: transform 0.3s ease;
}
.login-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.4);
}

.login-header h2 {
    margin: 0 0 1.3rem;
    font-weight: 600;
    font-size: 2rem;
    color: #2c3e50;
    letter-spacing: 1.1px;
}

/* Animation cool pour alert */
@keyframes colorPulse {
    0% {
    background-color: #dcae6a;
    color: #323337;
    box-shadow: 0 4px 8px rgba(42, 86, 198, 0.15);
    }
    50% {
    background-color: #a76841;
    color: #e0cccc;
    box-shadow: 0 6px 15px rgba(31, 63, 166, 0.25);
    }
    100% {
    background-color: #df4415;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(42, 86, 198, 0.15);
    }
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 1.8rem;
    font-weight: 600;
    user-select: none;
    animation: colorPulse 4s ease-in-out infinite;
    transition: color 0.3s ease, background-color 0.3s ease;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.3rem;
    font-weight: 600;
    user-select: none;
}

input[type="email"],
input[type="password"] {
    padding: 0.75rem 1rem;
    border: 2px solid #cbd7ea;
    border-radius: 0.7rem;
    font-size: 1rem;
    transition: border-color 0.25s ease;
    outline-offset: 2px;
    outline-color: transparent;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #2a56c6;
    outline-color: #8aa7ff;
    box-shadow: 0 0 8px rgba(42, 86, 198, 0.3);
}

button {
    margin-top: 0.6rem;
    padding: 0.85rem 1rem;
    background: #2a56c6;
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(42, 86, 198, 0.45);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}
button:hover {
    background: #1f3fa6;
    box-shadow: 0 12px 25px rgba(31, 63, 166, 0.6);
}

.text-forget-password{
    width: 100%;
    text-align: right;
}

.text-forget-password a{
    text-decoration:none;
    color:  #585454;
}

@media (max-width: 480px) {
    .login-container {
    padding: 2.5rem 1.8rem;
    max-width: 320px;
    }
    .login-header h2 {
    font-size: 1.6rem;
    }
    button {
    font-size: 1rem;
    }
}

