/* =============================================
   STYLES SPECIFIQUES A LA PAGE LOGIN OTP
   ============================================= */

.page-login-otp {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 30px;
}

.page-login-otp .form-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: var(--csec-yellow);
}

.page-login-otp .form-content {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 50px 20px;
}

.page-login-otp .form-content h1 {
    font-size: 35px;
    color: var(--csec-dark-blue);
    margin-bottom: 30px;
}

/* Formulaire */
.page-login-otp #kc-otp-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login-otp label {
    font-size: 14px;
    color: var(--csec-dark-blue);
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.page-login-otp input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.page-login-otp input[type="text"]:focus {
    outline: none;
    border-color: var(--csec-dark-blue);
}

/* Liste des credentials OTP */
.page-login-otp .otp-credentials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.page-login-otp .otp-credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.page-login-otp .otp-credential-item:hover {
    border-color: var(--csec-dark-blue);
}

.page-login-otp .otp-credential-item.selected,
.page-login-otp input[type="radio"]:checked + label.otp-credential-item {
    border-color: var(--csec-orange);
    background-color: #fff8f0;
}

.page-login-otp input[type="radio"] {
    display: none;
}

.page-login-otp .otp-credential-icon {
    width: 40px;
    height: 40px;
    background-color: var(--csec-dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.page-login-otp .otp-credential-name {
    font-size: 14px;
    color: var(--csec-dark-blue);
    font-weight: 600;
}

/* Bouton submit */
.page-login-otp input[type="submit"] {
    background-color: var(--csec-orange);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    min-height: 44px;
    height: auto;
    max-width: 300px;
    border-radius: 0;
}

.page-login-otp input[type="submit"]:hover {
    opacity: 0.9;
}

/* Messages d'erreur */
.page-login-otp .pf-c-form__helper-text,
.page-login-otp [class*="kcInputErrorMessage"] {
    color: #c00;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablette */
@media (max-width: 1024px) {
    .page-login-otp {
        flex-direction: column;
        padding: 20px;
    }

    .page-login-otp > .info-box-logo {
        width: 200px;
        margin: 0 auto 20px auto;
    }

    .page-login-otp .form-wrapper {
        flex-direction: column;
    }

    .page-login-otp .form-content {
        width: 100%;
        padding: 30px;
    }

    .page-login-otp .form-wrapper > .info-box-logo {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-login-otp > .info-box-logo {
        display: none;
    }

    .page-login-otp .form-wrapper > .info-box-logo {
        display: none;
    }

    .page-login-otp .form-content {
        padding: 25px 20px;
    }

    .page-login-otp .form-content h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-login-otp input[type="text"],
    .page-login-otp input[type="submit"] {
        max-width: 100%;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .page-login-otp {
        margin: 10px;
        padding: 10px;
    }

    .page-login-otp .form-content {
        padding: 20px 15px;
    }

    .page-login-otp .form-content h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}
