body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #fff;
}

.container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.partie_gauche {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partie_gauche .logo_form {
    width: 200px;
    height: auto;
}

.partie_gauche h1 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

.switch {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
}

.tab {
    margin: 5px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #2e2a75;
    color: white;
}

.tab:not(.active) {
    background-color: #e3f2fd;
    color: black;
}

.tab:hover:not(.active) {
    background-color: #c8e8ff;
}

.form {
    width: 100%;
    max-width: 300px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 0;
    margin-bottom: 15px;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: transparent;
    font-size: 16px;
    outline: none;
    resize: vertical;
    transition: border-bottom 0.3s ease;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-bottom: 2px solid #2e2a75;
    outline: none;
}

input[type="date"] {
    text-transform: uppercase;
    color: #757575;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(46%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

textarea[placeholder] {
    font-family: Arial, Helvetica, sans-serif;
}

.partie_gauche form #mdp_oublie {
    text-decoration: none;
    color: #2e2a75;
    font-size: 14px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.partie_gauche form #mdp_oublie:hover {
    text-decoration: underline;
}

input[type="submit"] {
    background-color: #2e2a75;
    color: white;
    font-weight: bold;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #e3f2fd;
    color: black;
}

.cont {
    display: flex;
    align-items: center;
    transform: scale(1);
}

input[type="checkbox"] {
    height: 1.2rem;
    width: 1.2rem;
    margin: 5px;
    display: inline-block;
    appearance: none;
    position: relative;
    background-color: #e3f2fd;
    border-radius: 15%;
    cursor: pointer;
    overflow: hidden;
}

input[type="checkbox"]::after {
    content: "";
    display: block;
    height: 0.5rem;
    width: 0.2rem;
    border-bottom: .20rem solid #e3f2fd;
    border-right: .20rem solid #e3f2fd;
    opacity: 0;
    transform: rotate(45deg) translate(-50%, -50%);
    position: absolute;
    top: 45%;
    left: 21%;
    transition: .25s ease;
}

input[type="checkbox"]::before {
    content: "";
    display: block;
    height: 0;
    width: 0;
    background-color: #2e2a75;
    border-radius: 50%;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    transition: .3s ease;
}

input[type="checkbox"]:checked::before {
    height: 130%;
    width: 130%;
    opacity: 100%;
}

input[type="checkbox"]:checked::after {
    opacity: 100%;
}

.partie_droite {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    border-radius: 30px;
    overflow: hidden;
}

.partie_droite .logo_form {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    width: 50%;
}

#registerForm {
    display: none;
}

#cond_util {
    text-decoration: none;
    color: #2e2a75;
}

#cond_util:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .partie_gauche {
        width: 100%;
        padding: 20px 10px;
    }

    .partie_droite {
        display: none;
    }

    .form {
        max-width: 100%;
        width: 90%;
    }

    .input-group {
        flex-direction: column;
        gap: 0;
    }

    .input-group input {
        width: 92%;
    }

    .switch {
        width: 90%;
    }

    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.password-field {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    padding-right: 30px;
}

.password-toggle-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #757575;
    transition: color 0.3s ease;
    font-size: 16px;
    margin-top: -8px;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.password-toggle-icon:hover {
    color: #2e2a75;
}