/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #198754;
    --secondary: #f9a825;
    --text: #333;
    --light: #f5f5f5;
    --white: #fff;
    --grey-color: #707070;
    --grey-color-light: #d9d9d9;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

/* Full Page Layout */
.full-page-container {
    display: flex;
    height: 100vh;
}

.signup-side {
    width: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-side {
    width: 50%;
    background: url('../img/signup.jpeg') center/cover no-repeat;
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.image-overlay h1 {
    font-size: 50px;
}

/* Form Styles */
.signup-form {
    width: 100%;
    max-width: 500px;
}

.form-label {
    margin-bottom: 1.5rem !important;
}

.form-control:focus {
    box-shadow: none !important;
    border-color: #a7a8a9 !important;
}

.input-group-text {
    background: none !important;
}

.text-red {
    color: red;
}

.input-group input, .signup-btn {
    height: 50px;
}

.signup-btn {
    margin-top: 15px;
    background: var(--primary) !important;
    color: var(--white);
    border: none;
}

.signup-btn:hover {
    background: var(--secondary) !important;
    color: var(--white);
}

#togglePassword, #toggleConfirmPassword {
    background: var(--white);
    border: 1px solid #dee2e6;
    border-left: none;
}

.forgot-password-link {
    color: var(--grey-color);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .image-side {
        display: none;
    }
    .full-page-container {
        flex-direction: column;
        height: auto; /* Plus de hauteur fixe */
    }

    .signup-side {
        width: 100%;
        min-height: 100vh; /* Prend toute la hauteur */
        padding: 20px;
    }

    .signup-form {
        max-width: 90%;
        margin: auto;
    }

    #logoSoumawale {
        width: 70%;
        max-width: 250px;
    }
}

/* Supprimer l’image sur mobile */
@media (max-width: 576px) {
    .image-side {
        display: none;
    }

    .signup-side {
        height: auto;
        min-height: 100vh;
    }

    .signup-form {
        max-width: 100%;
        padding: 15px;
    }

    .row .col-md-6 {
        width: 100%;
    }

    .input-group input {
        height: 45px;
    }

    .signup-btn {
        height: 45px;
        font-size: 1rem;
    }

    #logoSoumawale {
        width: 60%;
        max-width: 200px;
    }
}
