
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0e1118;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80');
    background-repeat: repeat;
    background-size: cover; /* s’adapte à tout l’écran */
    background-position: center;
    position: relative;
    overflow-y: scroll;
    height: 100%;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 0;
}
/* === CONTAINER === */
.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 850px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
@media (max-width: 600px) {
    .login-container {
        padding: 25px 20px;
        max-width: 100%;
    }
}
/* Animation apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === LOGO / TITRE === */
.login-container .logo {
    font-size: 50px;
    color: #4ade80;
    margin-bottom: 10px;
}
.login-container h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}
.login-container p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 25px;
}

/* === INPUTS === */
.input-group {
    position: relative;
}
.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.input-group input {
    width: 100%;
    padding: 12px 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}
.input-group input:focus {
    border: 1px solid #4ade80;
}

/* === BOUTONS === */
.login-btn {
    background: #4ade80;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}
.login-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* === OPTIONS === */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 10px;
    color: #aaa;
}
.login-options a {
    color: #4ade80;
    transition: color 0.3s;
}
.login-options a:hover {
    color: #ff9b7f;
}

/* === ENTREPRISES (grille responsive) === */
/* === ENTREPRISES === */
.companies-grid {
    margin-top: 30px;
}

/* Liste des entreprises */
.companies-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

/* Carte entreprise */
.company-card {
    width: 150px;
    min-height: 180px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

/* Avatar entreprise */
.company-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bouton dans la carte */
.company-card .login-btn {
    width: 100%;
    padding: 7px;
    font-size: 12px;
    margin-top: 6px;
}


/* === RESPONSIVE === */

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        width: 90%;
    }

    .login-container h1 {
        font-size: 20px;
    }

}


@media (max-width: 600px) {
    body{
    align-items: stretch;
    justify-content: center;    }
    .company-card {
        width: 45%;
    }
}

@media (max-width: 400px) {
    .company-card {
        width: 100%;
    }
}
