/* =============================================
   WRAPPER
============================================= */
.cg-login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 60px;
    gap: 32px;
    background: #f4f5f7;
}

/* =============================================
   BANNIÈRE
============================================= */
.cg-login-banner {
    width: 100%;
    max-width: 820px;
}

.cg-login-banner-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    max-height: 200px;
}

/* =============================================
   CARD
============================================= */
.cg-login-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

/* =============================================
   HEADER CARD
============================================= */
.cg-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.cg-login-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0e8b8715;
    color: #0e8b87;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cg-login-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
}

.cg-login-subtitle {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* =============================================
   ERREUR
============================================= */
.cg-login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef0f0;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* =============================================
   FORMULAIRE
============================================= */
.cg-login-field {
    margin-bottom: 18px;
}

.cg-login-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
}

.cg-login-field label i {
    color: #0e8b87;
    font-size: 11px;
    width: 12px;
}

.cg-login-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}

.cg-login-input:focus {
    outline: none;
    border-color: #0e8b87;
    background: #fff;
    box-shadow: 0 0 0 3px #0e8b8715;
}

/* Champ mot de passe */
.cg-login-pass-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cg-login-pass-wrap .cg-login-input {
    flex: 1;
}

.cg-login-eye {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 11px 14px;
    color: #aaa;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
    font-size: 14px;
}

.cg-login-eye:hover {
    border-color: #0e8b87;
    color: #0e8b87;
}

/* =============================================
   BOUTON SUBMIT
============================================= */
.cg-login-submit {
    width: 100%;
    padding: 13px;
    background: #0e8b87;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: opacity 0.15s, transform 0.1s;
    font-family: inherit;
}

.cg-login-submit:hover {
    opacity: 0.92;
}

.cg-login-submit:active {
    transform: scale(0.98);
}

/* =============================================
   RESPONSIVE MOBILE
============================================= */
@media (max-width: 600px) {
    .cg-login-wrapper {
        padding: 20px 16px 40px;
        gap: 20px;
    }

    .cg-login-banner-img {
        border-radius: 12px;
        max-height: 140px;
    }

    .cg-login-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .cg-login-title {
        font-size: 19px;
    }

    .cg-login-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}
