﻿/* Harmonisation globale */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Wrapper général */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--main-blue), var(--main-gray));
    padding: 20px;
}

/* Carte de login */
.login-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 360px;
    text-align: left;
    backdrop-filter: blur(4px);
}

/* Logo + slogan */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    height: 150px;
    margin-bottom: 10px;
}

.slogan {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--main-blue);
    text-align: center;
    margin: 0;
}

/* Formulaire */
.form-group {
    margin-bottom: 15px;
}

    /* Inputs + bouton */
    .form-group input,
    .form-group button {
        width: 100%;
        padding: 12px;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 14px;
        display: block;
    }

        /* Focus input */
        .form-group input:focus {
            border-color: var(--main-blue);
            outline: none;
        }

    /* Bouton */
    .form-group button {
        background: linear-gradient(90deg, var(--main-blue), #062b63);
        color: white;
        cursor: pointer;
        font-weight: bold;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        /* Hover bouton */
        .form-group button:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

    /* 🔥 Réduction précise de l’espace sous le bouton */
    .form-group:last-of-type {
        margin-bottom: 2px; /* ajustement fin */
    }

/* Liens */
.forgot-link {
    margin-top: 1px; /* espace minimal et propre */
    text-align: right;
}

    .forgot-link a {
        color: var(--main-blue);
        font-size: 12px;
        font-weight: bold;
        text-decoration: none;
    }

        .forgot-link a:hover {
            text-decoration: underline;
        }

.signup-link {
    margin-top: 15px;
    text-align: center;
}

    .signup-link a {
        color: var(--main-blue);
        font-weight: bold;
        text-decoration: none;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

/* Message d'erreur */
.error {
    color: red;
    margin-top: 10px;
    text-align: center;
}

/* Alertes */
.alert {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #eee;
    opacity: 0.9;
}

    .footer a {
        color: #fff;
        text-decoration: none;
        margin: 0 5px;
    }

        .footer a:hover {
            text-decoration: underline;
        }

    .footer .copyright {
        margin-top: 4px;
        font-size: 11px;
        opacity: 0.8;
    }
