﻿/* Background gradient animation */
body {
    background: linear-gradient(135deg, #0040d0, #1a2b63, #5170ff);
    background-size: 400% 400%;
    animation: bgAnim 12s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: Inter, sans-serif;
}

@keyframes bgAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Card with glassmorphism effect */
.login-card {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 35px 30px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.16);
    animation: fadeIn .5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo circle */
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}

    .logo-circle img {
        width: 65px;
        object-fit: contain; /* garde le ratio */
    }


.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2b2f38; /* gris anthracite */
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

/* --- NEW : Champ centré et moins large --- */
.form-group {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.input {
    width: 80%; /* <-- moins long */
    max-width: 260px; /* <-- limite */
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #dce3ef;
    background: white;
    font-size: 15px;
    transition: 0.25s;
}

    .input:focus {
        border-color: #0040d0;
        box-shadow: 0 0 0 3px rgba(0,64,208,0.15);
        outline: none;
    }

/* --- NEW : bouton centré et moins long aussi --- */
.login-btn {
    width: 80%;
    max-width: 260px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #0040d0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: block;
    margin: 10px auto 0 auto;
}

    .login-btn:hover {
        background: #0032a3;
    }

.error-message {
    background: #c62828;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 14px;
}

.input-field {
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 14px;
    border: 1px solid #d8d3aa; /* bordure beige très légère */
    border-radius: 10px;
    font-size: 14px;
    background: #FFFCC8 !important; /* JAUNE CALIACH */
    color: #052635;
    transition: .25s;
}

    .input-field:focus {
        border-color: #ffffff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
    }

