.input-password-container {
    position: relative;
}

.input-password-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #c01a40;
    cursor: pointer;
}

.input-password-icon:hover {
    color: #e60000;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-forms-container {
    position: relative;
    min-height: 380px;
    perspective: 1000px;
}

.login-form {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    transition: transform 0.6s ease, opacity 0.5s ease;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.form-organisme {
    z-index: 2;
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.form-auditeur {
    z-index: 1;
    opacity: 0;
    transform: translateX(100%) rotateY(90deg);
}

.login-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.login-tab {
    position: relative;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 600;
    color: #777;
    transition: all 0.3s ease;
    overflow: hidden;
}

.login-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #c01a40;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login-tab.active {
    color: #c01a40;
}

.login-tab.active::after {
    width: 80%;
}

.login-tab:hover {
    color: #c01a40;
}

.login-tab:hover::after {
    width: 50%;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #c01a40;
    box-shadow: 0 0 0 2px rgba(255,77,77,0.2);
    outline: none;
}

.btn.log {
    background-color: #c01a40;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn.log:hover {
    background-color: #c01a40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,77,77,0.3);
}

.forgot-password {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    color: #c01a40;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #c01a40;
    text-decoration: underline;
}

/* Animation classes */
.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
    to {
        transform: translateX(-100%) rotateY(-90deg);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%) rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
    to {
        transform: translateX(100%) rotateY(90deg);
        opacity: 0;
    }
}
